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 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/reload_type.h" |
10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
11 #include "content/public/browser/web_ui_message_handler.h" | 11 #include "content/public/browser/web_ui_message_handler.h" |
12 | 12 |
13 class ExtensionService; | 13 class ExtensionService; |
14 class GURL; | 14 class GURL; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class WebUIDataSource; | 17 class WebUIDataSource; |
18 } | 18 } |
19 | 19 |
(...skipping 13 matching lines...) Expand all Loading... |
33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
34 | 34 |
35 // Note: This uses |web_ui()| from |WebUIMessageHandler|, so it must only be | 35 // Note: This uses |web_ui()| from |WebUIMessageHandler|, so it must only be |
36 // called after |web_ui->AddMessageHandler(this)| has been called. | 36 // called after |web_ui->AddMessageHandler(this)| has been called. |
37 void GetLocalizedValues(content::WebUIDataSource* source); | 37 void GetLocalizedValues(content::WebUIDataSource* source); |
38 | 38 |
39 private: | 39 private: |
40 // WebContentsObserver implementation. | 40 // WebContentsObserver implementation. |
41 void DidStartNavigationToPendingEntry( | 41 void DidStartNavigationToPendingEntry( |
42 const GURL& url, | 42 const GURL& url, |
43 content::NavigationController::ReloadType reload_type) override; | 43 content::ReloadType reload_type) override; |
44 | 44 |
45 // WebUIMessageHandler implementation. | 45 // WebUIMessageHandler implementation. |
46 void RegisterMessages() override; | 46 void RegisterMessages() override; |
47 | 47 |
48 // Helper method that reloads all unpacked extensions. | 48 // Helper method that reloads all unpacked extensions. |
49 void ReloadUnpackedExtensions(); | 49 void ReloadUnpackedExtensions(); |
50 | 50 |
51 // Our model. Outlives us since it's owned by our containing profile. | 51 // Our model. Outlives us since it's owned by our containing profile. |
52 ExtensionService* extension_service_; | 52 ExtensionService* extension_service_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace extensions | 57 } // namespace extensions |
58 | 58 |
59 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 59 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
OLD | NEW |