| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_PREFERENCE_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // into a representation that is used by the extension. | 59 // into a representation that is used by the extension. |
| 60 // Returns the extension representation in case of success or NULL otherwise. | 60 // Returns the extension representation in case of success or NULL otherwise. |
| 61 // The ownership of the returned value is passed to the caller. | 61 // The ownership of the returned value is passed to the caller. |
| 62 virtual Value* BrowserToExtensionPref(const Value* browser_pref) = 0; | 62 virtual Value* BrowserToExtensionPref(const Value* browser_pref) = 0; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 class GetEffectivePreferenceFunction : public SyncExtensionFunction { | 65 class GetEffectivePreferenceFunction : public SyncExtensionFunction { |
| 66 public: | 66 public: |
| 67 virtual ~GetEffectivePreferenceFunction(); | 67 virtual ~GetEffectivePreferenceFunction(); |
| 68 virtual bool RunImpl(); | 68 virtual bool RunImpl(); |
| 69 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.getEffective") | 69 DECLARE_EXTENSION_FUNCTION_NAME("preferences.getEffective") |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class SetPreferenceFunction : public SyncExtensionFunction { | 72 class SetPreferenceFunction : public SyncExtensionFunction { |
| 73 public: | 73 public: |
| 74 virtual ~SetPreferenceFunction(); | 74 virtual ~SetPreferenceFunction(); |
| 75 virtual bool RunImpl(); | 75 virtual bool RunImpl(); |
| 76 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.set") | 76 DECLARE_EXTENSION_FUNCTION_NAME("preferences.set") |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 class ClearPreferenceFunction : public SyncExtensionFunction { | 79 class ClearPreferenceFunction : public SyncExtensionFunction { |
| 80 public: | 80 public: |
| 81 virtual ~ClearPreferenceFunction(); | 81 virtual ~ClearPreferenceFunction(); |
| 82 virtual bool RunImpl(); | 82 virtual bool RunImpl(); |
| 83 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.clear") | 83 DECLARE_EXTENSION_FUNCTION_NAME("preferences.clear") |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ | 86 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ |
| OLD | NEW |