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_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 fileapi::FileSystemContext* file_system_context, | 267 fileapi::FileSystemContext* file_system_context, |
268 const LocalFileSyncInfoCallback& callback, | 268 const LocalFileSyncInfoCallback& callback, |
269 scoped_ptr<FileSystemURLQueue> urls); | 269 scoped_ptr<FileSystemURLQueue> urls); |
270 void DidTryPrepareForLocalSync( | 270 void DidTryPrepareForLocalSync( |
271 fileapi::FileSystemContext* file_system_context, | 271 fileapi::FileSystemContext* file_system_context, |
272 scoped_ptr<FileSystemURLQueue> remaining_urls, | 272 scoped_ptr<FileSystemURLQueue> remaining_urls, |
273 const LocalFileSyncInfoCallback& callback, | 273 const LocalFileSyncInfoCallback& callback, |
274 SyncStatusCode status, | 274 SyncStatusCode status, |
275 const LocalFileSyncInfo& sync_file_info, | 275 const LocalFileSyncInfo& sync_file_info, |
276 webkit_blob::ScopedFile snapshot); | 276 webkit_blob::ScopedFile snapshot); |
| 277 void PromoteDemotedChangesForURL( |
| 278 fileapi::FileSystemContext* file_system_context, |
| 279 const fileapi::FileSystemURL& url); |
| 280 void PromoteDemotedChangesForURLs( |
| 281 fileapi::FileSystemContext* file_system_context, |
| 282 scoped_ptr<FileSystemURLQueue> url); |
277 | 283 |
278 // Callback routine for PrepareForSync and GetFileForLocalSync. | 284 // Callback routine for PrepareForSync and GetFileForLocalSync. |
279 void DidGetWritingStatusForSync( | 285 void DidGetWritingStatusForSync( |
280 fileapi::FileSystemContext* file_system_context, | 286 fileapi::FileSystemContext* file_system_context, |
281 SyncStatusCode status, | 287 SyncStatusCode status, |
282 const fileapi::FileSystemURL& url, | 288 const fileapi::FileSystemURL& url, |
283 SyncMode sync_mode, | 289 SyncMode sync_mode, |
284 const LocalFileSyncInfoCallback& callback); | 290 const LocalFileSyncInfoCallback& callback); |
285 | 291 |
286 // Helper routine for sync/writing flag handling. | 292 // Helper routine for sync/writing flag handling. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 ObserverList<LocalOriginChangeObserver> origin_change_observers_; | 381 ObserverList<LocalOriginChangeObserver> origin_change_observers_; |
376 | 382 |
377 int mock_notify_changes_duration_in_sec_; | 383 int mock_notify_changes_duration_in_sec_; |
378 | 384 |
379 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext); | 385 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext); |
380 }; | 386 }; |
381 | 387 |
382 } // namespace sync_file_system | 388 } // namespace sync_file_system |
383 | 389 |
384 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 390 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ |
OLD | NEW |