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 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" |
6 | 6 |
7 #include "chrome/browser/drive/drive_api_util.h" | 7 #include "chrome/browser/drive/drive_api_util.h" |
8 #include "chrome/browser/drive/drive_service_interface.h" | 8 #include "chrome/browser/drive/drive_service_interface.h" |
9 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" | 9 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
10 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 10 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
11 #include "google_apis/drive/drive_api_parser.h" | 11 #include "google_apis/drive/drive_api_parser.h" |
12 #include "google_apis/drive/gdata_wapi_parser.h" | 12 #include "google_apis/drive/gdata_wapi_parser.h" |
13 | 13 |
14 namespace drive { | 14 namespace drive { |
15 class DriveServiceInterface; | 15 class DriveServiceInterface; |
16 class DriveUploaderInterface; | 16 class DriveUploaderInterface; |
17 } | 17 } |
18 | 18 |
19 namespace google_apis { | 19 namespace google_apis { |
20 class ResourceEntry; | 20 class ResourceEntry; |
21 class ResourceList; | |
22 } | 21 } |
23 | 22 |
24 namespace sync_file_system { | 23 namespace sync_file_system { |
25 namespace drive_backend { | 24 namespace drive_backend { |
26 | 25 |
27 FolderCreator::FolderCreator(drive::DriveServiceInterface* drive_service, | 26 FolderCreator::FolderCreator(drive::DriveServiceInterface* drive_service, |
28 MetadataDatabase* metadata_database, | 27 MetadataDatabase* metadata_database, |
29 const std::string& parent_folder_id, | 28 const std::string& parent_folder_id, |
30 const std::string& title) | 29 const std::string& title) |
31 : drive_service_(drive_service), | 30 : drive_service_(drive_service), |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (!metadata_database_->FindFileByFileID(file_id, nullptr)) { | 122 if (!metadata_database_->FindFileByFileID(file_id, nullptr)) { |
124 callback.Run(std::string(), SYNC_FILE_ERROR_NOT_FOUND); | 123 callback.Run(std::string(), SYNC_FILE_ERROR_NOT_FOUND); |
125 return; | 124 return; |
126 } | 125 } |
127 | 126 |
128 callback.Run(file_id, status); | 127 callback.Run(file_id, status); |
129 } | 128 } |
130 | 129 |
131 } // namespace drive_backend | 130 } // namespace drive_backend |
132 } // namespace sync_file_system | 131 } // namespace sync_file_system |
OLD | NEW |