OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 14 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
15 #include "google_apis/drive/drive_api_error_codes.h" | 15 #include "google_apis/drive/drive_api_error_codes.h" |
16 | 16 |
17 namespace drive { | 17 namespace drive { |
18 class DriveServiceInterface; | 18 class DriveServiceInterface; |
19 } | 19 } |
20 | 20 |
21 namespace google_apis { | 21 namespace google_apis { |
22 class FileList; | 22 class FileList; |
23 class FileResource; | 23 class FileResource; |
24 } | 24 } |
25 | 25 |
26 namespace sync_file_system { | 26 namespace sync_file_system { |
27 namespace drive_backend { | 27 namespace drive_backend { |
28 | 28 |
29 class MetadataDatabase; | 29 class MetadataDatabase; |
30 class SyncEngineContext; | |
31 | 30 |
32 class FolderCreator { | 31 class FolderCreator { |
33 public: | 32 public: |
34 typedef base::Callback<void(const std::string& file_id, | 33 typedef base::Callback<void(const std::string& file_id, |
35 SyncStatusCode status)> FileIDCallback; | 34 SyncStatusCode status)> FileIDCallback; |
36 | 35 |
37 FolderCreator(drive::DriveServiceInterface* drive_service, | 36 FolderCreator(drive::DriveServiceInterface* drive_service, |
38 MetadataDatabase* metadata_database, | 37 MetadataDatabase* metadata_database, |
39 const std::string& parent_folder_id, | 38 const std::string& parent_folder_id, |
40 const std::string& title); | 39 const std::string& title); |
(...skipping 18 matching lines...) Expand all Loading... |
59 | 58 |
60 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; | 59 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(FolderCreator); | 61 DISALLOW_COPY_AND_ASSIGN(FolderCreator); |
63 }; | 62 }; |
64 | 63 |
65 } // namespace drive_backend | 64 } // namespace drive_backend |
66 } // namespace sync_file_system | 65 } // namespace sync_file_system |
67 | 66 |
68 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ | 67 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ |
OLD | NEW |