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

Unified Diff: chrome/browser/chromeos/drive/sync_client.h

Issue 214363002: drive: Return cancel closure from FileSystem::GetFileContent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 6 years, 9 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 | « chrome/browser/chromeos/drive/file_system_interface.h ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/sync_client.h
diff --git a/chrome/browser/chromeos/drive/sync_client.h b/chrome/browser/chromeos/drive/sync_client.h
index a68458eadf8d74849d1fa96286267c6b4c962410..a8f6d1b3a57ba8d7bec1b6afb0fd00e5375072e2 100644
--- a/chrome/browser/chromeos/drive/sync_client.h
+++ b/chrome/browser/chromeos/drive/sync_client.h
@@ -101,7 +101,7 @@ class SyncClient {
SyncTask();
~SyncTask();
SyncState state;
- base::Closure task;
+ base::Callback<base::Closure()> task;
bool should_run_again;
base::Closure cancel_closure;
};
@@ -132,13 +132,6 @@ class SyncClient {
// Adds fetch tasks.
void AddFetchTasks(const std::vector<std::string>* local_ids);
- // Used as GetFileContentInitializedCallback.
- void OnGetFileContentInitialized(
- FileError error,
- scoped_ptr<ResourceEntry> entry,
- const base::FilePath& local_cache_file_path,
- const base::Closure& cancel_download_closure);
-
// Erases the task and returns true if task is completed.
bool OnTaskComplete(SyncType type, const std::string& local_id);
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_interface.h ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698