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

Side by Side Diff: webkit/fileapi/syncable/local_file_sync_context.h

Issue 14623008: [SyncFileSystem] Remove existing entry on LocalFileSyncContext::ApplyRemoteChange call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 7 years, 7 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 | webkit/fileapi/syncable/local_file_sync_context.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Callback routine for PrepareForSync and GetFileForLocalSync. 226 // Callback routine for PrepareForSync and GetFileForLocalSync.
227 void DidGetWritingStatusForSync( 227 void DidGetWritingStatusForSync(
228 fileapi::FileSystemContext* file_system_context, 228 fileapi::FileSystemContext* file_system_context,
229 SyncStatusCode status, 229 SyncStatusCode status,
230 const fileapi::FileSystemURL& url, 230 const fileapi::FileSystemURL& url,
231 const LocalFileSyncInfoCallback& callback); 231 const LocalFileSyncInfoCallback& callback);
232 232
233 // Helper routine for ClearSyncFlagForURL. 233 // Helper routine for ClearSyncFlagForURL.
234 void EnableWritingOnIOThread(const fileapi::FileSystemURL& url); 234 void EnableWritingOnIOThread(const fileapi::FileSystemURL& url);
235 235
236 void DidRemoveExistingEntryForApplyRemoteChange(
237 fileapi::FileSystemContext* file_system_context,
238 const FileChange& change,
239 const base::FilePath& local_path,
240 const fileapi::FileSystemURL& url,
241 const SyncStatusCallback& callback,
242 base::PlatformFileError error);
243
236 // Callback routine for ApplyRemoteChange. 244 // Callback routine for ApplyRemoteChange.
237 void DidApplyRemoteChange( 245 void DidApplyRemoteChange(
238 const fileapi::FileSystemURL& url, 246 const fileapi::FileSystemURL& url,
239 const SyncStatusCallback& callback_on_ui, 247 const SyncStatusCallback& callback_on_ui,
240 base::PlatformFileError file_error); 248 base::PlatformFileError file_error);
241 249
242 void DidGetFileMetadata( 250 void DidGetFileMetadata(
243 const SyncFileMetadataCallback& callback, 251 const SyncFileMetadataCallback& callback,
244 base::PlatformFileError file_error, 252 base::PlatformFileError file_error,
245 const base::PlatformFileInfo& file_info, 253 const base::PlatformFileInfo& file_info,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ObserverList<LocalOriginChangeObserver> origin_change_observers_; 297 ObserverList<LocalOriginChangeObserver> origin_change_observers_;
290 298
291 int mock_notify_changes_duration_in_sec_; 299 int mock_notify_changes_duration_in_sec_;
292 300
293 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext); 301 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext);
294 }; 302 };
295 303
296 } // namespace sync_file_system 304 } // namespace sync_file_system
297 305
298 #endif // WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_ 306 #endif // WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_SYNC_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/syncable/local_file_sync_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698