Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: base/value_conversions.h

Issue 2516363005: Inline StringValue into base::Value (Closed)
Patch Set: Rebase and Nits. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/test/values_test_util.h ('k') | base/values.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_VALUE_CONVERSIONS_H_ 5 #ifndef BASE_VALUE_CONVERSIONS_H_
6 #define BASE_VALUE_CONVERSIONS_H_ 6 #define BASE_VALUE_CONVERSIONS_H_
7 7
8 // This file contains methods to convert things to a |Value| and back. 8 // This file contains methods to convert things to a |Value| and back.
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 11
12 12
13 namespace base { 13 namespace base {
14 14
15 class FilePath; 15 class FilePath;
16 class TimeDelta; 16 class TimeDelta;
17 class StringValue;
18 class Value; 17 class Value;
18 using StringValue = Value;
19 19
20 // The caller takes ownership of the returned value. 20 // The caller takes ownership of the returned value.
21 BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value); 21 BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value);
22 BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path); 22 BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path);
23 23
24 BASE_EXPORT StringValue* CreateTimeDeltaValue(const TimeDelta& time); 24 BASE_EXPORT StringValue* CreateTimeDeltaValue(const TimeDelta& time);
25 BASE_EXPORT bool GetValueAsTimeDelta(const Value& value, TimeDelta* time); 25 BASE_EXPORT bool GetValueAsTimeDelta(const Value& value, TimeDelta* time);
26 26
27 } // namespace base 27 } // namespace base
28 28
29 #endif // BASE_VALUE_CONVERSIONS_H_ 29 #endif // BASE_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « base/test/values_test_util.h ('k') | base/values.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698