| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 class GetPreferenceFunction : public PreferenceFunction { | 184 class GetPreferenceFunction : public PreferenceFunction { |
| 185 public: | 185 public: |
| 186 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.get", TYPES_CHROMESETTING_GET) | 186 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.get", TYPES_CHROMESETTING_GET) |
| 187 | 187 |
| 188 protected: | 188 protected: |
| 189 virtual ~GetPreferenceFunction(); | 189 virtual ~GetPreferenceFunction(); |
| 190 | 190 |
| 191 // ExtensionFunction: | 191 // ExtensionFunction: |
| 192 virtual bool RunImpl() OVERRIDE; | 192 virtual bool RunSync() OVERRIDE; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 class SetPreferenceFunction : public PreferenceFunction { | 195 class SetPreferenceFunction : public PreferenceFunction { |
| 196 public: | 196 public: |
| 197 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.set", TYPES_CHROMESETTING_SET) | 197 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.set", TYPES_CHROMESETTING_SET) |
| 198 | 198 |
| 199 protected: | 199 protected: |
| 200 virtual ~SetPreferenceFunction(); | 200 virtual ~SetPreferenceFunction(); |
| 201 | 201 |
| 202 // ExtensionFunction: | 202 // ExtensionFunction: |
| 203 virtual bool RunImpl() OVERRIDE; | 203 virtual bool RunSync() OVERRIDE; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 class ClearPreferenceFunction : public PreferenceFunction { | 206 class ClearPreferenceFunction : public PreferenceFunction { |
| 207 public: | 207 public: |
| 208 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.clear", | 208 DECLARE_EXTENSION_FUNCTION("types.ChromeSetting.clear", |
| 209 TYPES_CHROMESETTING_CLEAR) | 209 TYPES_CHROMESETTING_CLEAR) |
| 210 | 210 |
| 211 protected: | 211 protected: |
| 212 virtual ~ClearPreferenceFunction(); | 212 virtual ~ClearPreferenceFunction(); |
| 213 | 213 |
| 214 // ExtensionFunction: | 214 // ExtensionFunction: |
| 215 virtual bool RunImpl() OVERRIDE; | 215 virtual bool RunSync() OVERRIDE; |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace extensions | 218 } // namespace extensions |
| 219 | 219 |
| 220 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ | 220 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_PREFERENCE_API_H__ |
| OLD | NEW |