Index: base/value_conversions.h |
diff --git a/base/value_conversions.h b/base/value_conversions.h |
index c65e6275f9fbf594531201ea153e708f97f69d19..7825bb1451649af0421f7aa42e2f0f1066695c0a 100644 |
--- a/base/value_conversions.h |
+++ b/base/value_conversions.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// 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. |
@@ -6,7 +6,7 @@ |
#define BASE_VALUE_CONVERSIONS_H_ |
#pragma once |
-// This file contains methods to convert a |FilePath| to a |Value| and back. |
+// This file contains methods to convert things to a |Value| and back. |
#include "base/base_export.h" |
@@ -14,6 +14,7 @@ class FilePath; |
namespace base { |
+class Time; |
class StringValue; |
class Value; |
@@ -21,6 +22,9 @@ class Value; |
BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value); |
BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path); |
+BASE_EXPORT StringValue* CreateTimeValue(const Time& time); |
+BASE_EXPORT bool GetValueAsTime(const Value& value, Time* time); |
+ |
} // namespace |
#endif // BASE_VALUE_CONVERSIONS_H_ |