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

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

Issue 11280140: Pass calls to GetApplicationInfo through the scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years 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/drive_scheduler.h
diff --git a/chrome/browser/chromeos/drive/drive_scheduler.h b/chrome/browser/chromeos/drive/drive_scheduler.h
index 23ca01838e7fa1eaa84cd510ac5f4ff9a4d41e45..5cec186f2f7b394d9dd4156381863ab5f6722601 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.h
+++ b/chrome/browser/chromeos/drive/drive_scheduler.h
@@ -33,6 +33,7 @@ class DriveScheduler
// Enum representing the type of job.
enum JobType {
+ TYPE_GET_APPLICATION_INFO,
TYPE_COPY,
TYPE_GET_DOCUMENTS,
TYPE_MOVE,
@@ -86,6 +87,9 @@ class DriveScheduler
// other functions.
void Initialize();
+ // Adds a GetApplicationInfo operation to the queue.
+ void GetApplicationInfo(const google_apis::GetDataCallback& callback);
+
// Adds a copy operation to the queue.
void Copy(const FilePath& src_file_path,
const FilePath& dest_file_path,
@@ -135,7 +139,7 @@ class DriveScheduler
JobInfo job_info;
- // Callback for when the operation completes.
+ // Callback for operations that take a FileOperationCallback.
// Used by:
// TYPE_COPY,
// TYPE_MOVE,
@@ -154,17 +158,24 @@ class DriveScheduler
// TYPE_TRANSFER_REMOTE_TO_LOCAL
FilePath dest_file_path;
- // Whether the operation is recursive. Used by:
+ // Whether the operation is recursive.
+ // Used by:
// TYPE_REMOVE
bool is_recursive;
- // Parameters for GetDocuments(). Used by:
+ // Parameters for GetDocuments().
+ // Used by:
// TYPE_GET_DOCUMENTS
GURL feed_url;
int64 start_changestamp;
std::string search_query;
bool shared_with_me;
std::string directory_resource_id;
+
+ // Callback for operations that take a GetDataCallback.
+ // Used by:
+ // TYPE_GET_APPLICATION_INFO
+ // TYPE_GET_DOCUMENTS
google_apis::GetDataCallback get_data_callback;
};
« no previous file with comments | « chrome/browser/chromeos/drive/drive_feed_loader.cc ('k') | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698