Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h

Issue 560703002: [SyncFS] Expand simple functions to their caller in drive_backend/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@03_context_rename
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_REMOTE_TO_LOCAL_SYNCER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void ResolveRemoteChange(scoped_ptr<SyncTaskToken> token); 103 void ResolveRemoteChange(scoped_ptr<SyncTaskToken> token);
104 104
105 // Handles missing remote metadata case. 105 // Handles missing remote metadata case.
106 // Fetches remote metadata and updates MetadataDatabase by that. The sync 106 // Fetches remote metadata and updates MetadataDatabase by that. The sync
107 // operation itself will be deferred to the next sync round. 107 // operation itself will be deferred to the next sync round.
108 // Note: if the file is not found, it should be handled as if deleted. 108 // Note: if the file is not found, it should be handled as if deleted.
109 void HandleMissingRemoteMetadata(scoped_ptr<SyncTaskToken> token); 109 void HandleMissingRemoteMetadata(scoped_ptr<SyncTaskToken> token);
110 void DidGetRemoteMetadata(scoped_ptr<SyncTaskToken> token, 110 void DidGetRemoteMetadata(scoped_ptr<SyncTaskToken> token,
111 google_apis::GDataErrorCode error, 111 google_apis::GDataErrorCode error,
112 scoped_ptr<google_apis::FileResource> entry); 112 scoped_ptr<google_apis::FileResource> entry);
113 void DidUpdateDatabaseForRemoteMetadata(scoped_ptr<SyncTaskToken> token,
114 SyncStatusCode status);
115 113
116 // This implements the body of the HandleNewFile and HandleContentUpdate. 114 // This implements the body of the HandleNewFile and HandleContentUpdate.
117 // If the file doesn't have corresponding local file: 115 // If the file doesn't have corresponding local file:
118 // - Dispatch to DownloadFile. 116 // - Dispatch to DownloadFile.
119 // Else, if the local file doesn't have local change: 117 // Else, if the local file doesn't have local change:
120 // - Dispatch to DownloadFile if the local file is a regular file. 118 // - Dispatch to DownloadFile if the local file is a regular file.
121 // - If the local file is a folder, handle this case as a conflict. Lower 119 // - If the local file is a folder, handle this case as a conflict. Lower
122 // the priority of the tracker, and defer further handling to 120 // the priority of the tracker, and defer further handling to
123 // local-to-remote change. 121 // local-to-remote change.
124 // Else: 122 // Else:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 205
208 base::WeakPtrFactory<RemoteToLocalSyncer> weak_ptr_factory_; 206 base::WeakPtrFactory<RemoteToLocalSyncer> weak_ptr_factory_;
209 207
210 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer); 208 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer);
211 }; 209 };
212 210
213 } // namespace drive_backend 211 } // namespace drive_backend
214 } // namespace sync_file_system 212 } // namespace sync_file_system
215 213
216 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_ H_ 214 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698