| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", | 156 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", |
| 157 DEVELOPERPRIVATE_ALLOWFILEACCESS); | 157 DEVELOPERPRIVATE_ALLOWFILEACCESS); |
| 158 | 158 |
| 159 protected: | 159 protected: |
| 160 virtual ~DeveloperPrivateAllowFileAccessFunction(); | 160 virtual ~DeveloperPrivateAllowFileAccessFunction(); |
| 161 | 161 |
| 162 // ExtensionFunction: | 162 // ExtensionFunction: |
| 163 virtual bool RunImpl() OVERRIDE; | 163 virtual bool RunImpl() OVERRIDE; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 class DeveloperPrivateAllowIncognitoFunction : public SyncExtensionFunction { |
| 167 public: |
| 168 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowIncognito", |
| 169 DEVELOPERPRIVATE_ALLOWINCOGNITO); |
| 170 |
| 171 protected: |
| 172 virtual ~DeveloperPrivateAllowIncognitoFunction(); |
| 173 |
| 174 // ExtensionFunction: |
| 175 virtual bool RunImpl() OVERRIDE; |
| 176 }; |
| 177 |
| 166 class DeveloperPrivateReloadFunction : public SyncExtensionFunction { | 178 class DeveloperPrivateReloadFunction : public SyncExtensionFunction { |
| 167 public: | 179 public: |
| 168 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", | 180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", |
| 169 DEVELOPERPRIVATE_RELOAD); | 181 DEVELOPERPRIVATE_RELOAD); |
| 170 | 182 |
| 171 protected: | 183 protected: |
| 172 virtual ~DeveloperPrivateReloadFunction(); | 184 virtual ~DeveloperPrivateReloadFunction(); |
| 173 | 185 |
| 174 // ExtensionFunction: | 186 // ExtensionFunction: |
| 175 virtual bool RunImpl() OVERRIDE; | 187 virtual bool RunImpl() OVERRIDE; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 305 |
| 294 // ExtensionFunction | 306 // ExtensionFunction |
| 295 virtual bool RunImpl() OVERRIDE; | 307 virtual bool RunImpl() OVERRIDE; |
| 296 }; | 308 }; |
| 297 | 309 |
| 298 } // namespace api | 310 } // namespace api |
| 299 | 311 |
| 300 } // namespace extensions | 312 } // namespace extensions |
| 301 | 313 |
| 302 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 314 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
| OLD | NEW |