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

Unified Diff: base/value_conversions.h

Issue 10545128: Unrevert r141537: Add extensions::StateStore and use that instead of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix.crash 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/value_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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