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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context.h

Issue 389983002: [SyncFS] Interface clean up around LocalfileSyncContext::GetFileForLocalSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_sync_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/local/local_file_sync_context.h
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context.h b/chrome/browser/sync_file_system/local/local_file_sync_context.h
index be97f5dfa92bfd85c3fd53357d1bde1d3b2b10ce..0decd08b2c5573a808e7c21cc055f679ca0745c5 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context.h
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context.h
@@ -216,6 +216,7 @@ class LocalFileSyncContext
private:
typedef base::Callback<void(base::File::Error result)> StatusCallback;
typedef std::deque<SyncStatusCallback> StatusCallbackQueue;
+ typedef std::deque<fileapi::FileSystemURL> FileSystemURLQueue;
friend class base::RefCountedThreadSafe<LocalFileSyncContext>;
friend class CannedSyncableFileSystem;
@@ -257,16 +258,15 @@ class LocalFileSyncContext
SyncStatusCode status);
// Helper routines for GetFileForLocalSync.
- void GetNextURLsForSyncOnFileThread(
- fileapi::FileSystemContext* file_system_context,
- std::deque<fileapi::FileSystemURL>* urls);
+ scoped_ptr<FileSystemURLQueue> GetNextURLsForSyncOnFileThread(
+ fileapi::FileSystemContext* file_system_context);
void TryPrepareForLocalSync(
fileapi::FileSystemContext* file_system_context,
- std::deque<fileapi::FileSystemURL>* urls,
- const LocalFileSyncInfoCallback& callback);
+ const LocalFileSyncInfoCallback& callback,
+ scoped_ptr<FileSystemURLQueue> urls);
void DidTryPrepareForLocalSync(
fileapi::FileSystemContext* file_system_context,
- std::deque<fileapi::FileSystemURL>* remaining_urls,
+ scoped_ptr<FileSystemURLQueue> remaining_urls,
const LocalFileSyncInfoCallback& callback,
SyncStatusCode status,
const LocalFileSyncInfo& sync_file_info,
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_sync_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698