summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_preference_api.h
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 19:15:03 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 19:15:03 +0000
commitf3a1c64a4d81c412273ed567536f23c2c14813a2 (patch)
treef0ced21805b18546e879413e4f808dd4f683c534 /chrome/browser/extensions/extension_preference_api.h
parent2338319a9acbaecba44243740b3f01b5c408a78a (diff)
downloadchromium_src-f3a1c64a4d81c412273ed567536f23c2c14813a2.zip
chromium_src-f3a1c64a4d81c412273ed567536f23c2c14813a2.tar.gz
chromium_src-f3a1c64a4d81c412273ed567536f23c2c14813a2.tar.bz2
Move base/values.h into the base namespace. This includes a cros DEPS roll
with a minor change to that code since libcros also uses base/values.h. BUG=88666 TEST=none Review URL: http://codereview.chromium.org/7259019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92208 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_preference_api.h')
-rw-r--r--chrome/browser/extensions/extension_preference_api.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_preference_api.h b/chrome/browser/extensions/extension_preference_api.h
index 804d062..5ac4b78 100644
--- a/chrome/browser/extensions/extension_preference_api.h
+++ b/chrome/browser/extensions/extension_preference_api.h
@@ -12,6 +12,10 @@
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "content/common/notification_observer.h"
+namespace base {
+class Value;
+}
+
class ExtensionPreferenceEventRouter : public NotificationObserver {
public:
explicit ExtensionPreferenceEventRouter(Profile* profile);
@@ -39,8 +43,6 @@ class ExtensionPreferenceEventRouter : public NotificationObserver {
DISALLOW_COPY_AND_ASSIGN(ExtensionPreferenceEventRouter);
};
-class Value;
-
class PrefTransformerInterface {
public:
virtual ~PrefTransformerInterface() {}
@@ -51,15 +53,17 @@ class PrefTransformerInterface {
// |error| and returns NULL otherwise. |bad_message| is passed to simulate
// the behavior of EXTENSION_FUNCTION_VALIDATE. It is never NULL.
// The ownership of the returned value is passed to the caller.
- virtual Value* ExtensionToBrowserPref(const Value* extension_pref,
- std::string* error,
- bool* bad_message) = 0;
+ virtual base::Value* ExtensionToBrowserPref(
+ const base::Value* extension_pref,
+ std::string* error,
+ bool* bad_message) = 0;
// Converts the representation of the preference as stored in the browser
// into a representation that is used by the extension.
// Returns the extension representation in case of success or NULL otherwise.
// The ownership of the returned value is passed to the caller.
- virtual Value* BrowserToExtensionPref(const Value* browser_pref) = 0;
+ virtual base::Value* BrowserToExtensionPref(
+ const base::Value* browser_pref) = 0;
};
class GetPreferenceFunction : public SyncExtensionFunction {