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" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 }; | 188 }; |
189 | 189 |
| 190 class DeveloperPrivateShowPermissionsDialogFunction |
| 191 : public SyncExtensionFunction, |
| 192 public ExtensionInstallPrompt::Delegate { |
| 193 public: |
| 194 DECLARE_EXTENSION_FUNCTION("developerPrivate.showPermissionsDialog", |
| 195 DEVELOPERPRIVATE_PERMISSIONS); |
| 196 |
| 197 DeveloperPrivateShowPermissionsDialogFunction(); |
| 198 protected: |
| 199 virtual ~DeveloperPrivateShowPermissionsDialogFunction(); |
| 200 |
| 201 // ExtensionFunction: |
| 202 virtual bool RunImpl() OVERRIDE; |
| 203 |
| 204 // Overridden from ExtensionInstallPrompt::Delegate |
| 205 virtual void InstallUIProceed() OVERRIDE; |
| 206 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
| 207 |
| 208 scoped_ptr<ExtensionInstallPrompt> prompt_; |
| 209 |
| 210 }; |
| 211 |
190 class DeveloperPrivateRestartFunction : public SyncExtensionFunction { | 212 class DeveloperPrivateRestartFunction : public SyncExtensionFunction { |
191 public: | 213 public: |
192 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart", | 214 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart", |
193 DEVELOPERPRIVATE_RESTART); | 215 DEVELOPERPRIVATE_RESTART); |
194 | 216 |
195 protected: | 217 protected: |
196 virtual ~DeveloperPrivateRestartFunction(); | 218 virtual ~DeveloperPrivateRestartFunction(); |
197 | 219 |
198 // ExtensionFunction: | 220 // ExtensionFunction: |
199 virtual bool RunImpl() OVERRIDE; | 221 virtual bool RunImpl() OVERRIDE; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 327 |
306 // ExtensionFunction | 328 // ExtensionFunction |
307 virtual bool RunImpl() OVERRIDE; | 329 virtual bool RunImpl() OVERRIDE; |
308 }; | 330 }; |
309 | 331 |
310 } // namespace api | 332 } // namespace api |
311 | 333 |
312 } // namespace extensions | 334 } // namespace extensions |
313 | 335 |
314 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 336 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
OLD | NEW |