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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/user_data_dir_dialog.h ('k') | chrome/browser/ui/webui/feedback_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 10 matching lines...) Expand all
21 #include "content/public/browser/navigation_controller.h" 21 #include "content/public/browser/navigation_controller.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
25 #include "content/public/browser/web_contents_observer.h" 25 #include "content/public/browser/web_contents_observer.h"
26 #include "content/public/browser/web_ui_message_handler.h" 26 #include "content/public/browser/web_ui_message_handler.h"
27 #include "googleurl/src/gurl.h" 27 #include "googleurl/src/gurl.h"
28 #include "ui/shell_dialogs/select_file_dialog.h" 28 #include "ui/shell_dialogs/select_file_dialog.h"
29 29
30 class ExtensionService; 30 class ExtensionService;
31 class FilePath;
32 class PrefServiceSyncable; 31 class PrefServiceSyncable;
33 32
34 namespace base { 33 namespace base {
35 class DictionaryValue; 34 class DictionaryValue;
35 class FilePath;
36 class ListValue; 36 class ListValue;
37 } 37 }
38 38
39 namespace content { 39 namespace content {
40 class WebUIDataSource; 40 class WebUIDataSource;
41 } 41 }
42 42
43 namespace extensions { 43 namespace extensions {
44 class Extension; 44 class Extension;
45 class ExtensionHost; 45 class ExtensionHost;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 friend class ExtensionUITest; 97 friend class ExtensionUITest;
98 98
99 // Allows injection for testing by friend classes. 99 // Allows injection for testing by friend classes.
100 ExtensionSettingsHandler(ExtensionService* service, 100 ExtensionSettingsHandler(ExtensionService* service,
101 extensions::ManagementPolicy* policy); 101 extensions::ManagementPolicy* policy);
102 102
103 // WebUIMessageHandler implementation. 103 // WebUIMessageHandler implementation.
104 virtual void RegisterMessages() OVERRIDE; 104 virtual void RegisterMessages() OVERRIDE;
105 105
106 // SelectFileDialog::Listener implementation. 106 // SelectFileDialog::Listener implementation.
107 virtual void FileSelected(const FilePath& path, 107 virtual void FileSelected(const base::FilePath& path,
108 int index, void* params) OVERRIDE; 108 int index, void* params) OVERRIDE;
109 virtual void MultiFilesSelected( 109 virtual void MultiFilesSelected(
110 const std::vector<FilePath>& files, void* params) OVERRIDE; 110 const std::vector<base::FilePath>& files, void* params) OVERRIDE;
111 virtual void FileSelectionCanceled(void* params) OVERRIDE {} 111 virtual void FileSelectionCanceled(void* params) OVERRIDE {}
112 112
113 // content::NotificationObserver implementation. 113 // content::NotificationObserver implementation.
114 virtual void Observe(int type, 114 virtual void Observe(int type,
115 const content::NotificationSource& source, 115 const content::NotificationSource& source,
116 const content::NotificationDetails& details) OVERRIDE; 116 const content::NotificationDetails& details) OVERRIDE;
117 117
118 // ExtensionUninstallDialog::Delegate implementation, used for receiving 118 // ExtensionUninstallDialog::Delegate implementation, used for receiving
119 // notification about uninstall confirmation dialog selections. 119 // notification about uninstall confirmation dialog selections.
120 virtual void ExtensionUninstallAccepted() OVERRIDE; 120 virtual void ExtensionUninstallAccepted() OVERRIDE;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ExtensionService* extension_service_; 211 ExtensionService* extension_service_;
212 212
213 // A convenience member, filled once the extension_service_ is known. 213 // A convenience member, filled once the extension_service_ is known.
214 extensions::ManagementPolicy* management_policy_; 214 extensions::ManagementPolicy* management_policy_;
215 215
216 // Used to pick the directory when loading an extension. 216 // Used to pick the directory when loading an extension.
217 scoped_refptr<ui::SelectFileDialog> load_extension_dialog_; 217 scoped_refptr<ui::SelectFileDialog> load_extension_dialog_;
218 218
219 // Used to start the |load_extension_dialog_| in the last directory that was 219 // Used to start the |load_extension_dialog_| in the last directory that was
220 // loaded. 220 // loaded.
221 FilePath last_unpacked_directory_; 221 base::FilePath last_unpacked_directory_;
222 222
223 // Used to show confirmation UI for uninstalling extensions in incognito mode. 223 // Used to show confirmation UI for uninstalling extensions in incognito mode.
224 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 224 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
225 225
226 // The id of the extension we are prompting the user about. 226 // The id of the extension we are prompting the user about.
227 std::string extension_id_prompting_; 227 std::string extension_id_prompting_;
228 228
229 // If true, we will ignore notifications in ::Observe(). This is needed 229 // If true, we will ignore notifications in ::Observe(). This is needed
230 // to prevent reloading the page when we were the cause of the 230 // to prevent reloading the page when we were the cause of the
231 // notification. 231 // notification.
(...skipping 26 matching lines...) Expand all
258 scoped_ptr<ExtensionInstallPrompt> prompt_; 258 scoped_ptr<ExtensionInstallPrompt> prompt_;
259 259
260 ScopedObserver<extensions::ExtensionWarningService, 260 ScopedObserver<extensions::ExtensionWarningService,
261 extensions::ExtensionWarningService::Observer> 261 extensions::ExtensionWarningService::Observer>
262 warning_service_observer_; 262 warning_service_observer_;
263 263
264 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); 264 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler);
265 }; 265 };
266 266
267 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 267 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/user_data_dir_dialog.h ('k') | chrome/browser/ui/webui/feedback_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698