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_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 | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
12 #include "chrome/browser/prefs/pref_change_registrar.h" | 11 #include "chrome/browser/prefs/pref_change_registrar.h" |
13 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
14 | 13 |
15 class PrefService; | 14 class PrefService; |
16 | 15 |
17 namespace base { | 16 namespace base { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.clear") | 109 DECLARE_EXTENSION_FUNCTION_NAME("types.ChromeSetting.clear") |
111 | 110 |
112 protected: | 111 protected: |
113 virtual ~ClearPreferenceFunction(); | 112 virtual ~ClearPreferenceFunction(); |
114 | 113 |
115 // ExtensionFunction: | 114 // ExtensionFunction: |
116 virtual bool RunImpl() OVERRIDE; | 115 virtual bool RunImpl() OVERRIDE; |
117 }; | 116 }; |
118 | 117 |
119 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ | 118 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ |
OLD | NEW |