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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Helper method that reloads all unpacked extensions. | 130 // Helper method that reloads all unpacked extensions. |
131 void ReloadUnpackedExtensions(); | 131 void ReloadUnpackedExtensions(); |
132 | 132 |
133 // Callback for "setElevated" message. | 133 // Callback for "setElevated" message. |
134 void ManagedUserSetElevated(const base::ListValue* args); | 134 void ManagedUserSetElevated(const base::ListValue* args); |
135 | 135 |
136 // If the authentication of the managed user was successful, | 136 // If the authentication of the managed user was successful, |
137 // it gives this information back to the UI. | 137 // it gives this information back to the UI. |
138 void PassphraseDialogCallback(bool success); | 138 void PassphraseDialogCallback(bool success); |
139 | 139 |
| 140 // Called to verify that the management policy allows the user to enable, |
| 141 // disable or uninstall an extension. |
| 142 bool CheckUserMayModifySettings(const extensions::Extension* extension); |
| 143 |
140 // Callback for "requestExtensionsData" message. | 144 // Callback for "requestExtensionsData" message. |
141 void HandleRequestExtensionsData(const base::ListValue* args); | 145 void HandleRequestExtensionsData(const base::ListValue* args); |
142 | 146 |
143 // Callback for "toggleDeveloperMode" message. | 147 // Callback for "toggleDeveloperMode" message. |
144 void HandleToggleDeveloperMode(const base::ListValue* args); | 148 void HandleToggleDeveloperMode(const base::ListValue* args); |
145 | 149 |
146 // Callback for "inspect" message. | 150 // Callback for "inspect" message. |
147 void HandleInspectMessage(const base::ListValue* args); | 151 void HandleInspectMessage(const base::ListValue* args); |
148 | 152 |
149 // Callback for "launch" message. | 153 // Callback for "launch" message. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 scoped_ptr<ExtensionInstallPrompt> prompt_; | 268 scoped_ptr<ExtensionInstallPrompt> prompt_; |
265 | 269 |
266 ScopedObserver<extensions::ExtensionWarningService, | 270 ScopedObserver<extensions::ExtensionWarningService, |
267 extensions::ExtensionWarningService::Observer> | 271 extensions::ExtensionWarningService::Observer> |
268 warning_service_observer_; | 272 warning_service_observer_; |
269 | 273 |
270 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); | 274 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); |
271 }; | 275 }; |
272 | 276 |
273 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ | 277 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ |
OLD | NEW |