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

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

Issue 15681009: Extract GetResolveFile into DownloadOperation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/drive_operations.h
diff --git a/chrome/browser/chromeos/drive/file_system/drive_operations.h b/chrome/browser/chromeos/drive/file_system/drive_operations.h
index 84e5a9975242be8b72e75a5072bc501da4e90b06..3b6b1d69eb9d5b3d68452f3a1b93878dbf808a16 100644
--- a/chrome/browser/chromeos/drive/file_system/drive_operations.h
+++ b/chrome/browser/chromeos/drive/file_system/drive_operations.h
@@ -31,6 +31,7 @@ namespace file_system {
class CopyOperation;
class CreateDirectoryOperation;
class CreateFileOperation;
+class DownloadOperation;
class MoveOperation;
class OperationObserver;
class RemoveOperation;
@@ -111,6 +112,15 @@ class DriveOperations {
bool is_recursive,
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,
@@ -129,6 +139,7 @@ class DriveOperations {
scoped_ptr<CreateFileOperation> create_file_operation_;
scoped_ptr<MoveOperation> move_operation_;
scoped_ptr<RemoveOperation> remove_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