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

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

Issue 10820034: Remove redirection header and add "ui::" before all SelectFileDialog usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuploading for different try run. Created 8 years, 4 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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/extensions/extension_install_ui.h" 13 #include "chrome/browser/extensions/extension_install_ui.h"
14 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 14 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
15 #include "chrome/browser/extensions/extension_warning_set.h" 15 #include "chrome/browser/extensions/extension_warning_set.h"
16 #include "chrome/browser/prefs/pref_change_registrar.h" 16 #include "chrome/browser/prefs/pref_change_registrar.h"
17 #include "chrome/browser/ui/select_file_dialog.h"
18 #include "chrome/common/extensions/extension_resource.h" 17 #include "chrome/common/extensions/extension_resource.h"
19 #include "content/public/browser/navigation_controller.h" 18 #include "content/public/browser/navigation_controller.h"
20 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/render_view_host.h" 21 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/web_contents_observer.h" 22 #include "content/public/browser/web_contents_observer.h"
24 #include "content/public/browser/web_ui_message_handler.h" 23 #include "content/public/browser/web_ui_message_handler.h"
25 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "ui/base/dialogs/select_file_dialog.h"
26 26
27 class ExtensionHost; 27 class ExtensionHost;
28 class ExtensionService; 28 class ExtensionService;
29 class FilePath; 29 class FilePath;
30 class PrefService; 30 class PrefService;
31 31
32 namespace base { 32 namespace base {
33 class DictionaryValue; 33 class DictionaryValue;
34 class ListValue; 34 class ListValue;
35 } 35 }
(...skipping 15 matching lines...) Expand all
51 GURL url; 51 GURL url;
52 int render_process_id; 52 int render_process_id;
53 int render_view_id; 53 int render_view_id;
54 bool incognito; 54 bool incognito;
55 }; 55 };
56 56
57 // Extension Settings UI handler. 57 // Extension Settings UI handler.
58 class ExtensionSettingsHandler : public content::WebUIMessageHandler, 58 class ExtensionSettingsHandler : public content::WebUIMessageHandler,
59 public content::NotificationObserver, 59 public content::NotificationObserver,
60 public content::WebContentsObserver, 60 public content::WebContentsObserver,
61 public SelectFileDialog::Listener, 61 public ui::SelectFileDialog::Listener,
62 public ExtensionUninstallDialog::Delegate { 62 public ExtensionUninstallDialog::Delegate {
63 public: 63 public:
64 ExtensionSettingsHandler(); 64 ExtensionSettingsHandler();
65 virtual ~ExtensionSettingsHandler(); 65 virtual ~ExtensionSettingsHandler();
66 66
67 static void RegisterUserPrefs(PrefService* prefs); 67 static void RegisterUserPrefs(PrefService* prefs);
68 68
69 // Extension Detail JSON Struct for page. |pages| is injected for unit 69 // Extension Detail JSON Struct for page. |pages| is injected for unit
70 // testing. 70 // testing.
71 // Note: |warning_set| can be NULL in unit tests. 71 // Note: |warning_set| can be NULL in unit tests.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Helper to inspect an ExtensionHost after it has been loaded. 175 // Helper to inspect an ExtensionHost after it has been loaded.
176 void InspectExtensionHost(ExtensionHost* host); 176 void InspectExtensionHost(ExtensionHost* host);
177 177
178 // Our model. Outlives us since it's owned by our containing profile. 178 // Our model. Outlives us since it's owned by our containing profile.
179 ExtensionService* extension_service_; 179 ExtensionService* extension_service_;
180 180
181 // A convenience member, filled once the extension_service_ is known. 181 // A convenience member, filled once the extension_service_ is known.
182 extensions::ManagementPolicy* management_policy_; 182 extensions::ManagementPolicy* management_policy_;
183 183
184 // Used to pick the directory when loading an extension. 184 // Used to pick the directory when loading an extension.
185 scoped_refptr<SelectFileDialog> load_extension_dialog_; 185 scoped_refptr<ui::SelectFileDialog> load_extension_dialog_;
186 186
187 // Used to start the |load_extension_dialog_| in the last directory that was 187 // Used to start the |load_extension_dialog_| in the last directory that was
188 // loaded. 188 // loaded.
189 FilePath last_unpacked_directory_; 189 FilePath last_unpacked_directory_;
190 190
191 // Used to show confirmation UI for uninstalling extensions in incognito mode. 191 // Used to show confirmation UI for uninstalling extensions in incognito mode.
192 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 192 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
193 193
194 // The id of the extension we are prompting the user about. 194 // The id of the extension we are prompting the user about.
195 std::string extension_id_prompting_; 195 std::string extension_id_prompting_;
(...skipping 18 matching lines...) Expand all
214 214
215 content::NotificationRegistrar registrar_; 215 content::NotificationRegistrar registrar_;
216 216
217 PrefChangeRegistrar pref_registrar_; 217 PrefChangeRegistrar pref_registrar_;
218 PrefChangeRegistrar local_state_pref_registrar_; 218 PrefChangeRegistrar local_state_pref_registrar_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); 220 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler);
221 }; 221 };
222 222
223 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 223 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/user_data_dir_dialog_view.cc ('k') | chrome/browser/ui/webui/extensions/extension_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698