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

Unified Diff: chrome/browser/chromeos/drive/file_system/operations.cc

Issue 16190003: drive: Add DownloadOperation::EnsureFileDownloadedByResourceId (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/operations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system/operations.cc
diff --git a/chrome/browser/chromeos/drive/file_system/operations.cc b/chrome/browser/chromeos/drive/file_system/operations.cc
index 0cc378a2ee20e034d4b0ebbe8279a7571c431f79..d4e22a33dfd8cca876d2af152d26cf99994988cf 100644
--- a/chrome/browser/chromeos/drive/file_system/operations.cc
+++ b/chrome/browser/chromeos/drive/file_system/operations.cc
@@ -156,7 +156,21 @@ void Operations::TouchFile(const base::FilePath& file_path,
file_path, last_access_time, last_modified_time, callback);
}
-void Operations::EnsureFileDownloaded(
+void Operations::EnsureFileDownloadedByResourceId(
+ const std::string& resource_id,
+ const ClientContext& context,
+ const GetFileContentInitializedCallback& initialized_callback,
+ const google_apis::GetContentCallback& get_content_callback,
+ const GetFileCallback& completion_callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK(!completion_callback.is_null());
+
+ download_operation_->EnsureFileDownloadedByResourceId(
+ resource_id, context, initialized_callback, get_content_callback,
+ completion_callback);
+}
+
+void Operations::EnsureFileDownloadedByPath(
const base::FilePath& file_path,
const ClientContext& context,
const GetFileContentInitializedCallback& initialized_callback,
@@ -165,7 +179,7 @@ void Operations::EnsureFileDownloaded(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!completion_callback.is_null());
- download_operation_->EnsureFileDownloaded(
+ download_operation_->EnsureFileDownloadedByPath(
file_path, context, initialized_callback, get_content_callback,
completion_callback);
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/operations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698