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

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

Issue 343883003: [SyncFS] Break up overwriting file/folder creation to two phase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void DidUpdateDatabaseForUploadExistingFile( 77 void DidUpdateDatabaseForUploadExistingFile(
78 scoped_ptr<SyncTaskToken> token, 78 scoped_ptr<SyncTaskToken> token,
79 SyncStatusCode status); 79 SyncStatusCode status);
80 void UpdateRemoteMetadata(const std::string& file_id, 80 void UpdateRemoteMetadata(const std::string& file_id,
81 scoped_ptr<SyncTaskToken> token); 81 scoped_ptr<SyncTaskToken> token);
82 void DidGetRemoteMetadata(const std::string& file_id, 82 void DidGetRemoteMetadata(const std::string& file_id,
83 scoped_ptr<SyncTaskToken> token, 83 scoped_ptr<SyncTaskToken> token,
84 google_apis::GDataErrorCode error, 84 google_apis::GDataErrorCode error,
85 scoped_ptr<google_apis::FileResource> entry); 85 scoped_ptr<google_apis::FileResource> entry);
86 86
87 void DidDeleteForUploadNewFile(scoped_ptr<SyncTaskToken> token,
88 SyncStatusCode status);
89 void DidDeleteForCreateFolder(scoped_ptr<SyncTaskToken> token,
90 SyncStatusCode status);
91
92 void UploadNewFile(scoped_ptr<SyncTaskToken> token); 87 void UploadNewFile(scoped_ptr<SyncTaskToken> token);
93 void DidUploadNewFile(scoped_ptr<SyncTaskToken> token, 88 void DidUploadNewFile(scoped_ptr<SyncTaskToken> token,
94 google_apis::GDataErrorCode error, 89 google_apis::GDataErrorCode error,
95 const GURL& upload_location, 90 const GURL& upload_location,
96 scoped_ptr<google_apis::FileResource> entry); 91 scoped_ptr<google_apis::FileResource> entry);
97 92
98 void CreateRemoteFolder(scoped_ptr<SyncTaskToken> token); 93 void CreateRemoteFolder(scoped_ptr<SyncTaskToken> token);
99 void DidCreateRemoteFolder(scoped_ptr<SyncTaskToken> token, 94 void DidCreateRemoteFolder(scoped_ptr<SyncTaskToken> token,
100 const std::string& file_id, 95 const std::string& file_id,
101 SyncStatusCode status); 96 SyncStatusCode status);
(...skipping 26 matching lines...) Expand all
128 123
129 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; 124 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_;
130 125
131 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); 126 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer);
132 }; 127 };
133 128
134 } // namespace drive_backend 129 } // namespace drive_backend
135 } // namespace sync_file_system 130 } // namespace sync_file_system
136 131
137 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_ H_ 132 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_ H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698