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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
23 #include "content/public/browser/render_view_host.h" | 23 #include "content/public/browser/render_view_host.h" |
24 #include "content/public/browser/web_contents_observer.h" | 24 #include "content/public/browser/web_contents_observer.h" |
25 #include "content/public/browser/web_ui_message_handler.h" | 25 #include "content/public/browser/web_ui_message_handler.h" |
26 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
27 #include "ui/base/dialogs/select_file_dialog.h" | 27 #include "ui/base/dialogs/select_file_dialog.h" |
28 | 28 |
29 class ExtensionService; | 29 class ExtensionService; |
30 class FilePath; | 30 class FilePath; |
31 class PrefService; | 31 class PrefServiceSyncable; |
32 | 32 |
33 namespace base { | 33 namespace base { |
34 class DictionaryValue; | 34 class DictionaryValue; |
35 class ListValue; | 35 class ListValue; |
36 } | 36 } |
37 | 37 |
38 namespace extensions { | 38 namespace extensions { |
39 class Extension; | 39 class Extension; |
40 class ExtensionHost; | 40 class ExtensionHost; |
41 class ManagementPolicy; | 41 class ManagementPolicy; |
(...skipping 20 matching lines...) Expand all Loading... |
62 public content::NotificationObserver, | 62 public content::NotificationObserver, |
63 public content::WebContentsObserver, | 63 public content::WebContentsObserver, |
64 public ui::SelectFileDialog::Listener, | 64 public ui::SelectFileDialog::Listener, |
65 public ExtensionUninstallDialog::Delegate, | 65 public ExtensionUninstallDialog::Delegate, |
66 public extensions::ExtensionWarningService::Observer, | 66 public extensions::ExtensionWarningService::Observer, |
67 public base::SupportsWeakPtr<ExtensionSettingsHandler> { | 67 public base::SupportsWeakPtr<ExtensionSettingsHandler> { |
68 public: | 68 public: |
69 ExtensionSettingsHandler(); | 69 ExtensionSettingsHandler(); |
70 virtual ~ExtensionSettingsHandler(); | 70 virtual ~ExtensionSettingsHandler(); |
71 | 71 |
72 static void RegisterUserPrefs(PrefService* prefs); | 72 static void RegisterUserPrefs(PrefServiceSyncable* prefs); |
73 | 73 |
74 // Extension Detail JSON Struct for page. |pages| is injected for unit | 74 // Extension Detail JSON Struct for page. |pages| is injected for unit |
75 // testing. | 75 // testing. |
76 // Note: |warning_service| can be NULL in unit tests. | 76 // Note: |warning_service| can be NULL in unit tests. |
77 base::DictionaryValue* CreateExtensionDetailValue( | 77 base::DictionaryValue* CreateExtensionDetailValue( |
78 const extensions::Extension* extension, | 78 const extensions::Extension* extension, |
79 const std::vector<ExtensionPage>& pages, | 79 const std::vector<ExtensionPage>& pages, |
80 const extensions::ExtensionWarningService* warning_service); | 80 const extensions::ExtensionWarningService* warning_service); |
81 | 81 |
82 void GetLocalizedValues(base::DictionaryValue* localized_strings); | 82 void GetLocalizedValues(base::DictionaryValue* localized_strings); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 scoped_ptr<extensions::RequirementsChecker> requirements_checker_; | 242 scoped_ptr<extensions::RequirementsChecker> requirements_checker_; |
243 | 243 |
244 ScopedObserver<extensions::ExtensionWarningService, | 244 ScopedObserver<extensions::ExtensionWarningService, |
245 extensions::ExtensionWarningService::Observer> | 245 extensions::ExtensionWarningService::Observer> |
246 warning_service_observer_; | 246 warning_service_observer_; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 248 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
249 }; | 249 }; |
250 | 250 |
251 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 251 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
OLD | NEW |