| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // ExtensionManagement::Observer implementation. | 78 // ExtensionManagement::Observer implementation. |
| 79 void OnExtensionManagementSettingsChanged() override; | 79 void OnExtensionManagementSettingsChanged() override; |
| 80 | 80 |
| 81 // WarningService::Observer implementation. | 81 // WarningService::Observer implementation. |
| 82 void ExtensionWarningsChanged() override; | 82 void ExtensionWarningsChanged() override; |
| 83 | 83 |
| 84 // Helper method that reloads all unpacked extensions. | 84 // Helper method that reloads all unpacked extensions. |
| 85 void ReloadUnpackedExtensions(); | 85 void ReloadUnpackedExtensions(); |
| 86 | 86 |
| 87 // Callback for "requestExtensionsData" message. | |
| 88 void HandleRequestExtensionsData(const base::ListValue* args); | |
| 89 | |
| 90 // Callback for "toggleDeveloperMode" message. | |
| 91 void HandleToggleDeveloperMode(const base::ListValue* args); | |
| 92 | |
| 93 // Callback for "launch" message. | 87 // Callback for "launch" message. |
| 94 void HandleLaunchMessage(const base::ListValue* args); | 88 void HandleLaunchMessage(const base::ListValue* args); |
| 95 | 89 |
| 96 // Callback for "repair" message. | 90 // Callback for "repair" message. |
| 97 void HandleRepairMessage(const base::ListValue* args); | 91 void HandleRepairMessage(const base::ListValue* args); |
| 98 | 92 |
| 99 // Callback for "options" message. | 93 // Callback for "options" message. |
| 100 void HandleOptionsMessage(const base::ListValue* args); | 94 void HandleOptionsMessage(const base::ListValue* args); |
| 101 | 95 |
| 102 // Callback for "permissions" message. | 96 // Callback for "permissions" message. |
| 103 void HandlePermissionsMessage(const base::ListValue* args); | 97 void HandlePermissionsMessage(const base::ListValue* args); |
| 104 | 98 |
| 105 // Callback for "autoupdate" message. | 99 // Callback for "autoupdate" message. |
| 106 void HandleAutoUpdateMessage(const base::ListValue* args); | 100 void HandleAutoUpdateMessage(const base::ListValue* args); |
| 107 | 101 |
| 108 // Callback for the "dismissADTPromo" message. | |
| 109 void HandleDismissADTPromoMessage(const base::ListValue* args); | |
| 110 | |
| 111 // Callback for the "showPath" message. | 102 // Callback for the "showPath" message. |
| 112 void HandleShowPath(const base::ListValue* args); | 103 void HandleShowPath(const base::ListValue* args); |
| 113 | 104 |
| 114 // Utility for callbacks that get an extension ID as the sole argument. | 105 // Utility for callbacks that get an extension ID as the sole argument. |
| 115 // Returns NULL if the extension isn't active. | 106 // Returns NULL if the extension isn't active. |
| 116 const Extension* GetActiveExtension(const base::ListValue* args); | 107 const Extension* GetActiveExtension(const base::ListValue* args); |
| 117 | 108 |
| 118 // Forces a UI update if appropriate after a notification is received. | 109 // Forces a UI update if appropriate after a notification is received. |
| 119 void MaybeUpdateAfterNotification(); | 110 void MaybeUpdateAfterNotification(); |
| 120 | 111 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 153 |
| 163 ScopedObserver<ExtensionManagement, ExtensionManagement::Observer> | 154 ScopedObserver<ExtensionManagement, ExtensionManagement::Observer> |
| 164 extension_management_observer_; | 155 extension_management_observer_; |
| 165 | 156 |
| 166 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
| 167 }; | 158 }; |
| 168 | 159 |
| 169 } // namespace extensions | 160 } // namespace extensions |
| 170 | 161 |
| 171 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 162 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
| OLD | NEW |