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

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

Issue 15681009: Extract GetResolveFile into DownloadOperation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
Index: chrome/browser/chromeos/drive/file_system/operations.h
diff --git a/chrome/browser/chromeos/drive/file_system/operations.h b/chrome/browser/chromeos/drive/file_system/operations.h
index 1c6ee26dee461bafb94186eaab94ac11f8908dc6..ae408be2bdafb07bb771721effe711d0a991d719 100644
--- a/chrome/browser/chromeos/drive/file_system/operations.h
+++ b/chrome/browser/chromeos/drive/file_system/operations.h
@@ -32,6 +32,7 @@ namespace file_system {
class CopyOperation;
class CreateDirectoryOperation;
class CreateFileOperation;
+class DownloadOperation;
class MoveOperation;
class OperationObserver;
class RemoveOperation;
@@ -119,6 +120,15 @@ class Operations {
const base::Time& last_modified_time,
const FileOperationCallback& callback);
+ // Wrapper function for download_operation_.
+ // |completion_callback| must not be null.
+ void EnsureFileDownloaded(
+ const base::FilePath& file_path,
+ DriveClientContext context,
+ const GetFileContentInitializedCallback& initialized_callback,
+ const google_apis::GetContentCallback& get_content_callback,
+ const GetFileCallback& completion_callback);
+
// Wrapper function for update_operation_.
// |callback| must not be null.
void UpdateFileByResourceId(const std::string& resource_id,
@@ -138,6 +148,7 @@ class Operations {
scoped_ptr<MoveOperation> move_operation_;
scoped_ptr<RemoveOperation> remove_operation_;
scoped_ptr<TouchOperation> touch_operation_;
+ scoped_ptr<DownloadOperation> download_operation_;
scoped_ptr<UpdateOperation> update_operation_;
scoped_ptr<SearchOperation> search_operation_;
};

Powered by Google App Engine
This is Rietveld 408576698