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_LOCAL_TO_REMOTE_SYNCER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void HandleExistingRemoteFile(scoped_ptr<SyncTaskToken> token); | 69 void HandleExistingRemoteFile(scoped_ptr<SyncTaskToken> token); |
70 | 70 |
71 void UpdateTrackerForReusedFolder(const FileDetails& details, | 71 void UpdateTrackerForReusedFolder(const FileDetails& details, |
72 scoped_ptr<SyncTaskToken> token); | 72 scoped_ptr<SyncTaskToken> token); |
73 | 73 |
74 void DeleteRemoteFile(scoped_ptr<SyncTaskToken> token); | 74 void DeleteRemoteFile(scoped_ptr<SyncTaskToken> token); |
75 void DidDeleteRemoteFile(scoped_ptr<SyncTaskToken> token, | 75 void DidDeleteRemoteFile(scoped_ptr<SyncTaskToken> token, |
76 google_apis::GDataErrorCode error); | 76 google_apis::GDataErrorCode error); |
77 | 77 |
78 void UploadExistingFile(scoped_ptr<SyncTaskToken> token); | 78 void UploadExistingFile(scoped_ptr<SyncTaskToken> token); |
79 void DidGetMD5ForUpload(scoped_ptr<SyncTaskToken> token, | |
80 const std::string& local_file_md5); | |
81 void DidUploadExistingFile(scoped_ptr<SyncTaskToken> token, | 79 void DidUploadExistingFile(scoped_ptr<SyncTaskToken> token, |
82 google_apis::GDataErrorCode error, | 80 google_apis::GDataErrorCode error, |
83 const GURL&, | 81 const GURL&, |
84 scoped_ptr<google_apis::FileResource>); | 82 scoped_ptr<google_apis::FileResource>); |
85 void DidUpdateDatabaseForUploadExistingFile( | 83 void DidUpdateDatabaseForUploadExistingFile( |
86 scoped_ptr<SyncTaskToken> token, | 84 scoped_ptr<SyncTaskToken> token, |
87 SyncStatusCode status); | 85 SyncStatusCode status); |
88 void UpdateRemoteMetadata(const std::string& file_id, | 86 void UpdateRemoteMetadata(const std::string& file_id, |
89 scoped_ptr<SyncTaskToken> token); | 87 scoped_ptr<SyncTaskToken> token); |
90 void DidGetRemoteMetadata(const std::string& file_id, | 88 void DidGetRemoteMetadata(const std::string& file_id, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 128 |
131 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; | 129 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; |
132 | 130 |
133 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); | 131 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); |
134 }; | 132 }; |
135 | 133 |
136 } // namespace drive_backend | 134 } // namespace drive_backend |
137 } // namespace sync_file_system | 135 } // namespace sync_file_system |
138 | 136 |
139 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_
H_ | 137 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_
H_ |
OLD | NEW |