| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 DEVELOPERPRIVATE_LOADUNPACKEDCROS); | 405 DEVELOPERPRIVATE_LOADUNPACKEDCROS); |
| 406 | 406 |
| 407 DeveloperPrivateLoadDirectoryFunction(); | 407 DeveloperPrivateLoadDirectoryFunction(); |
| 408 | 408 |
| 409 protected: | 409 protected: |
| 410 virtual ~DeveloperPrivateLoadDirectoryFunction(); | 410 virtual ~DeveloperPrivateLoadDirectoryFunction(); |
| 411 | 411 |
| 412 // ExtensionFunction: | 412 // ExtensionFunction: |
| 413 virtual bool RunAsync() OVERRIDE; | 413 virtual bool RunAsync() OVERRIDE; |
| 414 | 414 |
| 415 bool LoadByFileSystemAPI(const fileapi::FileSystemURL& directory_url); | 415 bool LoadByFileSystemAPI(const storage::FileSystemURL& directory_url); |
| 416 | 416 |
| 417 void ClearExistingDirectoryContent(const base::FilePath& project_path); | 417 void ClearExistingDirectoryContent(const base::FilePath& project_path); |
| 418 | 418 |
| 419 void ReadDirectoryByFileSystemAPI(const base::FilePath& project_path, | 419 void ReadDirectoryByFileSystemAPI(const base::FilePath& project_path, |
| 420 const base::FilePath& destination_path); | 420 const base::FilePath& destination_path); |
| 421 | 421 |
| 422 void ReadDirectoryByFileSystemAPICb( | 422 void ReadDirectoryByFileSystemAPICb( |
| 423 const base::FilePath& project_path, | 423 const base::FilePath& project_path, |
| 424 const base::FilePath& destination_path, | 424 const base::FilePath& destination_path, |
| 425 base::File::Error result, | 425 base::File::Error result, |
| 426 const fileapi::FileSystemOperation::FileEntryList& file_list, | 426 const storage::FileSystemOperation::FileEntryList& file_list, |
| 427 bool has_more); | 427 bool has_more); |
| 428 | 428 |
| 429 void SnapshotFileCallback( | 429 void SnapshotFileCallback( |
| 430 const base::FilePath& target_path, | 430 const base::FilePath& target_path, |
| 431 base::File::Error result, | 431 base::File::Error result, |
| 432 const base::File::Info& file_info, | 432 const base::File::Info& file_info, |
| 433 const base::FilePath& platform_path, | 433 const base::FilePath& platform_path, |
| 434 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); | 434 const scoped_refptr<storage::ShareableFileReference>& file_ref); |
| 435 | 435 |
| 436 void CopyFile(const base::FilePath& src_path, | 436 void CopyFile(const base::FilePath& src_path, |
| 437 const base::FilePath& dest_path); | 437 const base::FilePath& dest_path); |
| 438 | 438 |
| 439 void Load(); | 439 void Load(); |
| 440 | 440 |
| 441 scoped_refptr<fileapi::FileSystemContext> context_; | 441 scoped_refptr<storage::FileSystemContext> context_; |
| 442 | 442 |
| 443 // syncfs url representing the root of the folder to be copied. | 443 // syncfs url representing the root of the folder to be copied. |
| 444 std::string project_base_url_; | 444 std::string project_base_url_; |
| 445 | 445 |
| 446 // physical path on disc of the folder to be copied. | 446 // physical path on disc of the folder to be copied. |
| 447 base::FilePath project_base_path_; | 447 base::FilePath project_base_path_; |
| 448 | 448 |
| 449 private: | 449 private: |
| 450 int pending_copy_operations_count_; | 450 int pending_copy_operations_count_; |
| 451 | 451 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 485 |
| 486 // ExtensionFunction: | 486 // ExtensionFunction: |
| 487 virtual bool RunAsync() OVERRIDE; | 487 virtual bool RunAsync() OVERRIDE; |
| 488 }; | 488 }; |
| 489 | 489 |
| 490 } // namespace api | 490 } // namespace api |
| 491 | 491 |
| 492 } // namespace extensions | 492 } // namespace extensions |
| 493 | 493 |
| 494 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 494 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
| OLD | NEW |