| 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/navigation_controller.h" | 21 #include "content/public/browser/navigation_controller.h" |
| 22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 24 #include "content/public/browser/render_view_host.h" | 24 #include "content/public/browser/render_view_host.h" |
| 25 #include "content/public/browser/web_contents_observer.h" | 25 #include "content/public/browser/web_contents_observer.h" |
| 26 #include "content/public/browser/web_ui_message_handler.h" | 26 #include "content/public/browser/web_ui_message_handler.h" |
| 27 #include "googleurl/src/gurl.h" | 27 #include "googleurl/src/gurl.h" |
| 28 #include "ui/shell_dialogs/select_file_dialog.h" | 28 #include "ui/shell_dialogs/select_file_dialog.h" |
| 29 | 29 |
| 30 class ExtensionService; | 30 class ExtensionService; |
| 31 class PrefServiceSyncable; | 31 class PrefRegistrySyncable; |
| 32 | 32 |
| 33 namespace base { | 33 namespace base { |
| 34 class DictionaryValue; | 34 class DictionaryValue; |
| 35 class FilePath; | 35 class FilePath; |
| 36 class ListValue; | 36 class ListValue; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 class WebUIDataSource; | 40 class WebUIDataSource; |
| 41 } | 41 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 68 public content::WebContentsObserver, | 68 public content::WebContentsObserver, |
| 69 public ui::SelectFileDialog::Listener, | 69 public ui::SelectFileDialog::Listener, |
| 70 public ExtensionInstallPrompt::Delegate, | 70 public ExtensionInstallPrompt::Delegate, |
| 71 public ExtensionUninstallDialog::Delegate, | 71 public ExtensionUninstallDialog::Delegate, |
| 72 public extensions::ExtensionWarningService::Observer, | 72 public extensions::ExtensionWarningService::Observer, |
| 73 public base::SupportsWeakPtr<ExtensionSettingsHandler> { | 73 public base::SupportsWeakPtr<ExtensionSettingsHandler> { |
| 74 public: | 74 public: |
| 75 ExtensionSettingsHandler(); | 75 ExtensionSettingsHandler(); |
| 76 virtual ~ExtensionSettingsHandler(); | 76 virtual ~ExtensionSettingsHandler(); |
| 77 | 77 |
| 78 static void RegisterUserPrefs(PrefServiceSyncable* prefs); | 78 static void RegisterUserPrefs(PrefRegistrySyncable* registry); |
| 79 | 79 |
| 80 // Extension Detail JSON Struct for page. |pages| is injected for unit | 80 // Extension Detail JSON Struct for page. |pages| is injected for unit |
| 81 // testing. | 81 // testing. |
| 82 // Note: |warning_service| can be NULL in unit tests. | 82 // Note: |warning_service| can be NULL in unit tests. |
| 83 base::DictionaryValue* CreateExtensionDetailValue( | 83 base::DictionaryValue* CreateExtensionDetailValue( |
| 84 const extensions::Extension* extension, | 84 const extensions::Extension* extension, |
| 85 const std::vector<ExtensionPage>& pages, | 85 const std::vector<ExtensionPage>& pages, |
| 86 const extensions::ExtensionWarningService* warning_service); | 86 const extensions::ExtensionWarningService* warning_service); |
| 87 | 87 |
| 88 void GetLocalizedValues(content::WebUIDataSource* source); | 88 void GetLocalizedValues(content::WebUIDataSource* source); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 scoped_ptr<ExtensionInstallPrompt> prompt_; | 258 scoped_ptr<ExtensionInstallPrompt> prompt_; |
| 259 | 259 |
| 260 ScopedObserver<extensions::ExtensionWarningService, | 260 ScopedObserver<extensions::ExtensionWarningService, |
| 261 extensions::ExtensionWarningService::Observer> | 261 extensions::ExtensionWarningService::Observer> |
| 262 warning_service_observer_; | 262 warning_service_observer_; |
| 263 | 263 |
| 264 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 264 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 267 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |