| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 std::vector<ExtensionPage> GetInspectablePagesForExtension( | 168 std::vector<ExtensionPage> GetInspectablePagesForExtension( |
| 169 const extensions::Extension* extension, bool extension_is_enabled); | 169 const extensions::Extension* extension, bool extension_is_enabled); |
| 170 void GetInspectablePagesForExtensionProcess( | 170 void GetInspectablePagesForExtensionProcess( |
| 171 const std::set<content::RenderViewHost*>& views, | 171 const std::set<content::RenderViewHost*>& views, |
| 172 std::vector<ExtensionPage> *result); | 172 std::vector<ExtensionPage> *result); |
| 173 | 173 |
| 174 // Returns the ExtensionUninstallDialog object for this class, creating it if | 174 // Returns the ExtensionUninstallDialog object for this class, creating it if |
| 175 // needed. | 175 // needed. |
| 176 ExtensionUninstallDialog* GetExtensionUninstallDialog(); | 176 ExtensionUninstallDialog* GetExtensionUninstallDialog(); |
| 177 | 177 |
| 178 // Helper to inspect an ExtensionHost after it has been loaded. | |
| 179 void InspectExtensionHost(extensions::ExtensionHost* host); | |
| 180 | |
| 181 // Callback for RequirementsChecker. | 178 // Callback for RequirementsChecker. |
| 182 void OnRequirementsChecked(std::string extension_id, | 179 void OnRequirementsChecked(std::string extension_id, |
| 183 std::vector<std::string> requirement_errors); | 180 std::vector<std::string> requirement_errors); |
| 184 | 181 |
| 185 // Our model. Outlives us since it's owned by our containing profile. | 182 // Our model. Outlives us since it's owned by our containing profile. |
| 186 ExtensionService* extension_service_; | 183 ExtensionService* extension_service_; |
| 187 | 184 |
| 188 // A convenience member, filled once the extension_service_ is known. | 185 // A convenience member, filled once the extension_service_ is known. |
| 189 extensions::ManagementPolicy* management_policy_; | 186 extensions::ManagementPolicy* management_policy_; |
| 190 | 187 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 223 |
| 227 // This will not be empty when a requirements check is in progress. Doing | 224 // This will not be empty when a requirements check is in progress. Doing |
| 228 // another Check() before the previous one is complete will cause the first | 225 // another Check() before the previous one is complete will cause the first |
| 229 // one to abort. | 226 // one to abort. |
| 230 scoped_ptr<extensions::RequirementsChecker> requirements_checker_; | 227 scoped_ptr<extensions::RequirementsChecker> requirements_checker_; |
| 231 | 228 |
| 232 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 229 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 233 }; | 230 }; |
| 234 | 231 |
| 235 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 232 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |