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

Side by Side Diff: base/value_conversions.h

Issue 10545104: Refactor chrome.alarms interface to support absolute alarm deadlines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r141780 Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/value_conversions.cc » ('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 #pragma once 7 #pragma once
8 8
9 // This file contains methods to convert things to a |Value| and back. 9 // This file contains methods to convert things to a |Value| and back.
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 12
13 class FilePath; 13 class FilePath;
14 14
15 namespace base { 15 namespace base {
16 16
17 class Time; 17 class TimeDelta;
18 class StringValue; 18 class StringValue;
19 class Value; 19 class Value;
20 20
21 // The caller takes ownership of the returned value. 21 // The caller takes ownership of the returned value.
22 BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value); 22 BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value);
23 BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path); 23 BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path);
24 24
25 BASE_EXPORT StringValue* CreateTimeValue(const Time& time); 25 BASE_EXPORT StringValue* CreateTimeDeltaValue(const TimeDelta& time);
26 BASE_EXPORT bool GetValueAsTime(const Value& value, Time* time); 26 BASE_EXPORT bool GetValueAsTimeDelta(const Value& value, TimeDelta* time);
27 27
28 } // namespace 28 } // namespace
29 29
30 #endif // BASE_VALUE_CONVERSIONS_H_ 30 #endif // BASE_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « no previous file | base/value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698