| 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_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // We want to register for notifications only after we've responded at least | 210 // We want to register for notifications only after we've responded at least |
| 211 // once to the page, otherwise we'd be calling JavaScript functions on objects | 211 // once to the page, otherwise we'd be calling JavaScript functions on objects |
| 212 // that don't exist yet when notifications come in. This variable makes sure | 212 // that don't exist yet when notifications come in. This variable makes sure |
| 213 // we do so only once. | 213 // we do so only once. |
| 214 bool registered_for_notifications_; | 214 bool registered_for_notifications_; |
| 215 | 215 |
| 216 content::NotificationRegistrar registrar_; | 216 content::NotificationRegistrar registrar_; |
| 217 | 217 |
| 218 PrefChangeRegistrar pref_registrar_; | 218 PrefChangeRegistrar pref_registrar_; |
| 219 PrefChangeRegistrar local_state_pref_registrar_; |
| 219 | 220 |
| 220 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 221 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 224 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |