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

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

Issue 13450006: Support new methods to replace GetResourceList on DriveScheduler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 8 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 | « no previous file | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b427e145f73c6303f1fb62c0c63add7311379d53..db404df6349e4796ae8563c88fcbd9bf6190c76f 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.h
+++ b/chrome/browser/chromeos/drive/drive_scheduler.h
@@ -32,6 +32,11 @@ class DriveScheduler
TYPE_GET_ACCOUNT_METADATA,
TYPE_GET_APP_LIST,
TYPE_GET_RESOURCE_LIST,
+ TYPE_GET_ALL_RESOURCE_LIST,
+ TYPE_GET_RESOURCE_LIST_IN_DIRECTORY,
+ TYPE_SEARCH,
+ TYPE_GET_CHANGE_LIST,
+ TYPE_CONTINUE_GET_RESOURCE_LIST,
TYPE_GET_RESOURCE_ENTRY,
TYPE_DELETE_RESOURCE,
TYPE_COPY_HOSTED_DOCUMENT,
@@ -108,6 +113,32 @@ class DriveScheduler
const std::string& directory_resource_id,
const google_apis::GetResourceListCallback& callback);
+ // Adds a GetAllResourceList operation to the queue.
+ // |callback| must not be null.
+ void GetAllResourceList(const google_apis::GetResourceListCallback& callback);
+
+ // Adds a GetResourceListInDirectory operation to the queue.
+ // |callback| must not be null.
+ void GetResourceListInDirectory(
+ const std::string& directory_resource_id,
+ const google_apis::GetResourceListCallback& callback);
+
+ // Adds a Search operation to the queue.
+ // |callback| must not be null.
+ void Search(const std::string& search_query,
+ const google_apis::GetResourceListCallback& callback);
+
+ // Adds a GetChangeList operation to the queue.
+ // |callback| must not be null.
+ void GetChangeList(int64 start_changestamp,
+ const google_apis::GetResourceListCallback& callback);
+
+ // Adds ContinueGetResourceList operation to the queue.
+ // |callback| must not be null.
+ void ContinueGetResourceList(
+ const GURL& feed_url,
+ const google_apis::GetResourceListCallback& callback);
+
// Adds a GetResourceEntry operation to the queue.
void GetResourceEntry(const std::string& resource_id,
const DriveClientContext& context,
@@ -217,14 +248,31 @@ class DriveScheduler
base::FilePath virtual_path;
base::FilePath local_cache_path;
- // Parameters for GetResourceList().
+ // Parameter to get change list.
// Used by:
// TYPE_GET_RESOURCE_LIST
- GURL feed_url;
+ // TYPE_GET_CHANGE_LIST
int64 start_changestamp;
- std::string search_query;
+
+ // Parameter to get a resource list in a particular directory.
+ // Used by:
+ // TYPE_GET_RESOURCE_LIST
+ // TYPE_GET_RESOURCE_LIST_IN_DIRECTORY
std::string directory_resource_id;
+ // Parameter to search the resource list
+ // Used by:
+ // TYPE_GET_RESOURCE_LIST
+ // TYPE_SEARCH
+ std::string search_query;
+
+ // Parameter to get remaining results of an operation via
+ // GetResourceListCallback.
+ // Used by:
+ // TYPE_GET_RESOURCE_LIST
+ // TYPE_CONTINUE_GET_RESOURCE_LIST
+ GURL feed_url;
+
// Parameter for copy or rename.
// Used by:
// TYPE_COPY_HOSTED_DOCUMENT
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698