| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 public content::WebContentsObserver, | 70 public content::WebContentsObserver, |
| 71 public ui::SelectFileDialog::Listener, | 71 public ui::SelectFileDialog::Listener, |
| 72 public ExtensionInstallPrompt::Delegate, | 72 public ExtensionInstallPrompt::Delegate, |
| 73 public ExtensionUninstallDialog::Delegate, | 73 public ExtensionUninstallDialog::Delegate, |
| 74 public extensions::ExtensionWarningService::Observer, | 74 public extensions::ExtensionWarningService::Observer, |
| 75 public base::SupportsWeakPtr<ExtensionSettingsHandler> { | 75 public base::SupportsWeakPtr<ExtensionSettingsHandler> { |
| 76 public: | 76 public: |
| 77 ExtensionSettingsHandler(); | 77 ExtensionSettingsHandler(); |
| 78 virtual ~ExtensionSettingsHandler(); | 78 virtual ~ExtensionSettingsHandler(); |
| 79 | 79 |
| 80 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 80 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 81 | 81 |
| 82 // Extension Detail JSON Struct for page. |pages| is injected for unit | 82 // Extension Detail JSON Struct for page. |pages| is injected for unit |
| 83 // testing. | 83 // testing. |
| 84 // Note: |warning_service| can be NULL in unit tests. | 84 // Note: |warning_service| can be NULL in unit tests. |
| 85 base::DictionaryValue* CreateExtensionDetailValue( | 85 base::DictionaryValue* CreateExtensionDetailValue( |
| 86 const extensions::Extension* extension, | 86 const extensions::Extension* extension, |
| 87 const std::vector<ExtensionPage>& pages, | 87 const std::vector<ExtensionPage>& pages, |
| 88 const extensions::ExtensionWarningService* warning_service); | 88 const extensions::ExtensionWarningService* warning_service); |
| 89 | 89 |
| 90 void GetLocalizedValues(content::WebUIDataSource* source); | 90 void GetLocalizedValues(content::WebUIDataSource* source); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 scoped_ptr<ExtensionInstallPrompt> prompt_; | 264 scoped_ptr<ExtensionInstallPrompt> prompt_; |
| 265 | 265 |
| 266 ScopedObserver<extensions::ExtensionWarningService, | 266 ScopedObserver<extensions::ExtensionWarningService, |
| 267 extensions::ExtensionWarningService::Observer> | 267 extensions::ExtensionWarningService::Observer> |
| 268 warning_service_observer_; | 268 warning_service_observer_; |
| 269 | 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 270 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 273 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |