| Index: 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 7a4c9f90e58fdad56ec5a21a356aded6bd4504fa..795b0393a556169764bb33ee14496b049a198008 100644
|
| --- a/chrome/browser/extensions/extension_preference_api.h
|
| +++ b/chrome/browser/extensions/extension_preference_api.h
|
| @@ -71,10 +71,9 @@ class PrefTransformerInterface {
|
| // A base class to provide functionality common to the other *PreferenceFunction
|
| // classes.
|
| class PreferenceFunction : public SyncExtensionFunction {
|
| - public:
|
| + protected:
|
| virtual ~PreferenceFunction();
|
|
|
| - protected:
|
| // Given an |extension_pref_key|, provides its |browser_pref_key| from the
|
| // static map in extension_preference.cc. Returns true if the corresponding
|
| // browser pref exists and the extension has the API permission needed to
|
| @@ -86,23 +85,35 @@ class PreferenceFunction : public SyncExtensionFunction {
|
|
|
| class GetPreferenceFunction : public PreferenceFunction {
|
| public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.get")
|
| +
|
| + protected:
|
| virtual ~GetPreferenceFunction();
|
| +
|
| + // ExtensionFunction:
|
| virtual bool RunImpl() OVERRIDE;
|
| - DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.get")
|
| };
|
|
|
| class SetPreferenceFunction : public PreferenceFunction {
|
| public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.set")
|
| +
|
| + protected:
|
| virtual ~SetPreferenceFunction();
|
| +
|
| + // ExtensionFunction:
|
| virtual bool RunImpl() OVERRIDE;
|
| - DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.set")
|
| };
|
|
|
| class ClearPreferenceFunction : public PreferenceFunction {
|
| public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.clear")
|
| +
|
| + protected:
|
| virtual ~ClearPreferenceFunction();
|
| +
|
| + // ExtensionFunction:
|
| virtual bool RunImpl() OVERRIDE;
|
| - DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.clear")
|
| };
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
|
|
|