| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void Run(const FileIDCallback& callback); | 43 void Run(const FileIDCallback& callback); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 void DidCreateFolder(const FileIDCallback& callback, | 46 void DidCreateFolder(const FileIDCallback& callback, |
| 47 google_apis::GDataErrorCode error, | 47 google_apis::GDataErrorCode error, |
| 48 scoped_ptr<google_apis::FileResource> entry); | 48 scoped_ptr<google_apis::FileResource> entry); |
| 49 void DidListFolders(const FileIDCallback& callback, | 49 void DidListFolders(const FileIDCallback& callback, |
| 50 ScopedVector<google_apis::FileResource> candidates, | 50 ScopedVector<google_apis::FileResource> candidates, |
| 51 google_apis::GDataErrorCode error, | 51 google_apis::GDataErrorCode error, |
| 52 scoped_ptr<google_apis::FileList> file_list); | 52 scoped_ptr<google_apis::FileList> file_list); |
| 53 void DidUpdateDatabase(const std::string& file_id, | |
| 54 const FileIDCallback& callback, | |
| 55 SyncStatusCode status); | |
| 56 | 53 |
| 57 drive::DriveServiceInterface* drive_service_; | 54 drive::DriveServiceInterface* drive_service_; |
| 58 MetadataDatabase* metadata_database_; | 55 MetadataDatabase* metadata_database_; |
| 59 | 56 |
| 60 const std::string parent_folder_id_; | 57 const std::string parent_folder_id_; |
| 61 const std::string title_; | 58 const std::string title_; |
| 62 | 59 |
| 63 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; | 60 base::WeakPtrFactory<FolderCreator> weak_ptr_factory_; |
| 64 | 61 |
| 65 DISALLOW_COPY_AND_ASSIGN(FolderCreator); | 62 DISALLOW_COPY_AND_ASSIGN(FolderCreator); |
| 66 }; | 63 }; |
| 67 | 64 |
| 68 } // namespace drive_backend | 65 } // namespace drive_backend |
| 69 } // namespace sync_file_system | 66 } // namespace sync_file_system |
| 70 | 67 |
| 71 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ | 68 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FOLDER_CREATOR_H_ |
| OLD | NEW |