summaryrefslogtreecommitdiff
path: root/chromium/base/value_conversions.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/base/value_conversions.h
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/value_conversions.h')
-rw-r--r--chromium/base/value_conversions.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/chromium/base/value_conversions.h b/chromium/base/value_conversions.h
deleted file mode 100644
index 369767f1d10..00000000000
--- a/chromium/base/value_conversions.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_VALUE_CONVERSIONS_H_
-#define BASE_VALUE_CONVERSIONS_H_
-
-// This file contains methods to convert things to a |Value| and back.
-
-#include <memory>
-
-#include "base/base_export.h"
-#include "base/compiler_specific.h"
-
-namespace base {
-
-class FilePath;
-class Time;
-class TimeDelta;
-class UnguessableToken;
-class Value;
-
-// In GetValueAs*() functions, the caller owns the object pointed by the output
-// parameter, e.g. |file_path|. If false is returned, the value of the object
-// pointed by the output parameter is not changed. It is okay to pass nullptr to
-// the output parameter.
-
-// Warning: The Values involved could be stored on persistent storage like files
-// on disks. Therefore, changes in implementation could lead to data corruption
-// and must be done with caution.
-
-BASE_EXPORT Value CreateFilePathValue(const FilePath& in_value);
-BASE_EXPORT bool GetValueAsFilePath(const Value& value,
- FilePath* file_path) WARN_UNUSED_RESULT;
-
-BASE_EXPORT Value CreateTimeValue(const Time& time);
-BASE_EXPORT bool GetValueAsTime(const Value& value,
- Time* time) WARN_UNUSED_RESULT;
-
-BASE_EXPORT Value CreateTimeDeltaValue(const TimeDelta& time_delta);
-BASE_EXPORT bool GetValueAsTimeDelta(const Value& value,
- TimeDelta* time_delta) WARN_UNUSED_RESULT;
-
-BASE_EXPORT Value CreateUnguessableTokenValue(const UnguessableToken& token);
-BASE_EXPORT bool GetValueAsUnguessableToken(const Value& value,
- UnguessableToken* token)
- WARN_UNUSED_RESULT;
-
-} // namespace base
-
-#endif // BASE_VALUE_CONVERSIONS_H_