From f3a1c64a4d81c412273ed567536f23c2c14813a2 Mon Sep 17 00:00:00 2001 From: "dmazzoni@chromium.org" Date: Tue, 12 Jul 2011 19:15:03 +0000 Subject: 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 --- chrome/browser/extensions/extension_preference_api.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'chrome/browser/extensions/extension_preference_api.h') 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 { -- cgit v1.1