diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 23:11:00 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 23:11:00 +0000 |
commit | 90e800cc11053770e70884e94e6e96802b559ff8 (patch) | |
tree | eba9770456db610c6a5c75d227b878fc85829e20 /base/value_conversions.h | |
parent | a934ece52fddea9e430d724c26ccbe76b4806809 (diff) | |
download | chromium_src-90e800cc11053770e70884e94e6e96802b559ff8.zip chromium_src-90e800cc11053770e70884e94e6e96802b559ff8.tar.gz chromium_src-90e800cc11053770e70884e94e6e96802b559ff8.tar.bz2 |
Unrevert r141537: Add extensions::StateStore and use that instead of
ExtensionPrefs for persisting alarm state to disk.
More to come:
- context menus
- omnibox
- declarative webRequest
TBR=brettw
BUG=123366
TEST=extension alarms are still remembered after chrome restart
Change since last time: Fall back to a FailingValueStore if ValueStoreFrontend
can't open the database.
Review URL: https://chromiumcodereview.appspot.com/10545128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/value_conversions.h')
-rw-r--r-- | base/value_conversions.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/value_conversions.h b/base/value_conversions.h index c65e627..7825bb1 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_ |