Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.h

Issue 10382149: Refactor the various ways to control what users can do to extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 class FilePath; 30 class FilePath;
31 class PrefService; 31 class PrefService;
32 32
33 namespace base { 33 namespace base {
34 class DictionaryValue; 34 class DictionaryValue;
35 class ListValue; 35 class ListValue;
36 } 36 }
37 37
38 namespace extensions { 38 namespace extensions {
39 class Extension; 39 class Extension;
40 class ManagementPolicy;
40 } 41 }
41 42
42 // Information about a page running in an extension, for example a popup bubble, 43 // Information about a page running in an extension, for example a popup bubble,
43 // a background page, or a tab contents. 44 // a background page, or a tab contents.
44 struct ExtensionPage { 45 struct ExtensionPage {
45 ExtensionPage(const GURL& url, int render_process_id, int render_view_id, 46 ExtensionPage(const GURL& url, int render_process_id, int render_view_id,
46 bool incognito) 47 bool incognito)
47 : url(url), 48 : url(url),
48 render_process_id(render_process_id), 49 render_process_id(render_process_id),
49 render_view_id(render_view_id), 50 render_view_id(render_view_id),
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // needed. 167 // needed.
167 ExtensionUninstallDialog* GetExtensionUninstallDialog(); 168 ExtensionUninstallDialog* GetExtensionUninstallDialog();
168 169
169 // Helper to inspect an ExtensionHost after it has been loaded. 170 // Helper to inspect an ExtensionHost after it has been loaded.
170 void InspectExtensionHost(ExtensionHost* host); 171 void InspectExtensionHost(ExtensionHost* host);
171 172
172 // Our model. Outlives us since it's owned by our containing profile. 173 // Our model. Outlives us since it's owned by our containing profile.
173 // Note: This may be NULL in unit tests. 174 // Note: This may be NULL in unit tests.
174 ExtensionService* extension_service_; 175 ExtensionService* extension_service_;
175 176
177 // A convenience member, filled once the extension_service_ is known.
178 extensions::ManagementPolicy* management_policy_;
179
176 // Used to pick the directory when loading an extension. 180 // Used to pick the directory when loading an extension.
177 scoped_refptr<SelectFileDialog> load_extension_dialog_; 181 scoped_refptr<SelectFileDialog> load_extension_dialog_;
178 182
179 // Used to start the |load_extension_dialog_| in the last directory that was 183 // Used to start the |load_extension_dialog_| in the last directory that was
180 // loaded. 184 // loaded.
181 FilePath last_unpacked_directory_; 185 FilePath last_unpacked_directory_;
182 186
183 // Used to show confirmation UI for uninstalling extensions in incognito mode. 187 // Used to show confirmation UI for uninstalling extensions in incognito mode.
184 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 188 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
185 189
(...skipping 19 matching lines...) Expand all
205 bool registered_for_notifications_; 209 bool registered_for_notifications_;
206 210
207 content::NotificationRegistrar registrar_; 211 content::NotificationRegistrar registrar_;
208 212
209 PrefChangeRegistrar pref_registrar_; 213 PrefChangeRegistrar pref_registrar_;
210 214
211 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); 215 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler);
212 }; 216 };
213 217
214 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 218 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698