| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |