| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 ~DeveloperPrivatePackDirectoryFunction() override; | 438 ~DeveloperPrivatePackDirectoryFunction() override; |
| 439 ResponseAction Run() override; | 439 ResponseAction Run() override; |
| 440 | 440 |
| 441 private: | 441 private: |
| 442 scoped_refptr<PackExtensionJob> pack_job_; | 442 scoped_refptr<PackExtensionJob> pack_job_; |
| 443 std::string item_path_str_; | 443 std::string item_path_str_; |
| 444 std::string key_path_str_; | 444 std::string key_path_str_; |
| 445 }; | 445 }; |
| 446 | 446 |
| 447 class DeveloperPrivateIsProfileManagedFunction | 447 class DeveloperPrivateIsProfileManagedFunction |
| 448 : public ChromeSyncExtensionFunction { | 448 : public UIThreadExtensionFunction { |
| 449 public: | 449 public: |
| 450 DECLARE_EXTENSION_FUNCTION("developerPrivate.isProfileManaged", | 450 DECLARE_EXTENSION_FUNCTION("developerPrivate.isProfileManaged", |
| 451 DEVELOPERPRIVATE_ISPROFILEMANAGED); | 451 DEVELOPERPRIVATE_ISPROFILEMANAGED); |
| 452 | 452 |
| 453 protected: | 453 protected: |
| 454 ~DeveloperPrivateIsProfileManagedFunction() override; | 454 ~DeveloperPrivateIsProfileManagedFunction() override; |
| 455 | 455 |
| 456 // ExtensionFunction: | 456 // ExtensionFunction: |
| 457 bool RunSync() override; | 457 ResponseAction Run() override; |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 class DeveloperPrivateLoadDirectoryFunction | 460 class DeveloperPrivateLoadDirectoryFunction |
| 461 : public ChromeAsyncExtensionFunction { | 461 : public ChromeAsyncExtensionFunction { |
| 462 public: | 462 public: |
| 463 DECLARE_EXTENSION_FUNCTION("developerPrivate.loadDirectory", | 463 DECLARE_EXTENSION_FUNCTION("developerPrivate.loadDirectory", |
| 464 DEVELOPERPRIVATE_LOADUNPACKEDCROS); | 464 DEVELOPERPRIVATE_LOADUNPACKEDCROS); |
| 465 | 465 |
| 466 DeveloperPrivateLoadDirectoryFunction(); | 466 DeveloperPrivateLoadDirectoryFunction(); |
| 467 | 467 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 protected: | 608 protected: |
| 609 ~DeveloperPrivateUpdateExtensionCommandFunction() override; | 609 ~DeveloperPrivateUpdateExtensionCommandFunction() override; |
| 610 ResponseAction Run() override; | 610 ResponseAction Run() override; |
| 611 }; | 611 }; |
| 612 | 612 |
| 613 } // namespace api | 613 } // namespace api |
| 614 | 614 |
| 615 } // namespace extensions | 615 } // namespace extensions |
| 616 | 616 |
| 617 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 617 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
| OLD | NEW |