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_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" | 8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" |
9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
11 #include "chrome/browser/extensions/extension_install_prompt.h" | 11 #include "chrome/browser/extensions/extension_permissions_prompt.h" |
12 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 12 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
13 #include "chrome/browser/extensions/pack_extension_job.h" | 13 #include "chrome/browser/extensions/pack_extension_job.h" |
14 #include "chrome/browser/extensions/requirements_checker.h" | 14 #include "chrome/browser/extensions/requirements_checker.h" |
15 #include "chrome/browser/profiles/profile_keyed_service.h" | 15 #include "chrome/browser/profiles/profile_keyed_service.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
19 #include "ui/shell_dialogs/select_file_dialog.h" | 19 #include "ui/shell_dialogs/select_file_dialog.h" |
20 | 20 |
21 class ExtensionService; | 21 class ExtensionService; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 class DeveloperPrivateReloadFunction : public SyncExtensionFunction { | 178 class DeveloperPrivateReloadFunction : public SyncExtensionFunction { |
179 public: | 179 public: |
180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", | 180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", |
181 DEVELOPERPRIVATE_RELOAD); | 181 DEVELOPERPRIVATE_RELOAD); |
182 | 182 |
183 protected: | 183 protected: |
184 virtual ~DeveloperPrivateReloadFunction(); | 184 virtual ~DeveloperPrivateReloadFunction(); |
185 | 185 |
186 // ExtensionFunction: | 186 // ExtensionFunction: |
187 virtual bool RunImpl() OVERRIDE; | 187 virtual bool RunImpl() OVERRIDE; |
188 | |
asargent_no_longer_on_chrome
2013/03/20 21:46:30
remove extra space?
Gaurav
2013/03/27 19:06:44
Done.
| |
188 }; | 189 }; |
189 | 190 |
191 class DeveloperPrivatePermissionsFunction | |
192 : public SyncExtensionFunction, | |
193 public ExtensionInstallPrompt::Delegate { | |
194 public: | |
195 DECLARE_EXTENSION_FUNCTION("developerPrivate.permissions", | |
196 DEVELOPERPRIVATE_PERMISSIONS); | |
197 | |
198 DeveloperPrivatePermissionsFunction(); | |
199 protected: | |
200 virtual ~DeveloperPrivatePermissionsFunction(); | |
201 | |
202 // ExtensionFunction: | |
203 virtual bool RunImpl() OVERRIDE; | |
204 | |
205 // Overridden from ExtensionInstallPrompt::Delegate | |
206 virtual void InstallUIProceed() OVERRIDE; | |
207 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | |
208 | |
209 scoped_ptr<ExtensionPermissionsPrompt> prompt_; | |
210 | |
211 }; | |
212 | |
213 | |
190 class DeveloperPrivateRestartFunction : public SyncExtensionFunction { | 214 class DeveloperPrivateRestartFunction : public SyncExtensionFunction { |
191 public: | 215 public: |
192 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart", | 216 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart", |
193 DEVELOPERPRIVATE_RESTART); | 217 DEVELOPERPRIVATE_RESTART); |
194 | 218 |
195 protected: | 219 protected: |
196 virtual ~DeveloperPrivateRestartFunction(); | 220 virtual ~DeveloperPrivateRestartFunction(); |
197 | 221 |
198 // ExtensionFunction: | 222 // ExtensionFunction: |
199 virtual bool RunImpl() OVERRIDE; | 223 virtual bool RunImpl() OVERRIDE; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 | 329 |
306 // ExtensionFunction | 330 // ExtensionFunction |
307 virtual bool RunImpl() OVERRIDE; | 331 virtual bool RunImpl() OVERRIDE; |
308 }; | 332 }; |
309 | 333 |
310 } // namespace api | 334 } // namespace api |
311 | 335 |
312 } // namespace extensions | 336 } // namespace extensions |
313 | 337 |
314 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ | 338 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ |
OLD | NEW |