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

Unified Diff: chrome/browser/google_apis/drive_api_url_generator.h

Issue 23549003: Refactor GetChangelistRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/google_apis/drive_api_url_generator.h
diff --git a/chrome/browser/google_apis/drive_api_url_generator.h b/chrome/browser/google_apis/drive_api_url_generator.h
index ec09e1d25b7ecbd0557213957348965e815aced6..6d63793199bd753fb7fb4591cabc90e9fb8a3bf1 100644
--- a/chrome/browser/google_apis/drive_api_url_generator.h
+++ b/chrome/browser/google_apis/drive_api_url_generator.h
@@ -32,18 +32,6 @@ class DriveApiUrlGenerator {
// Returns a URL to invoke "Apps: list" method.
GURL GetAppsListUrl() const;
- // Returns a URL to fetch a list of changes.
- // include_deleted:
- // Set to true if the requesting change list should contain the deleted
- // entries. Otherwise false.
- // start_changestamp:
- // The starting point of the requesting change list, or 0 if all changes
- // are necessary.
- // max_results:
- // The max of the number of files resource in the response.
- GURL GetChangelistUrl(
- bool include_deleted, int64 start_changestamp, int max_results) const;
-
// Returns a URL to edit (especially add) a resource, such as inserting
// a file metadata or creating a new directory.
GURL GetFilesUrl() const;
@@ -73,6 +61,12 @@ class DriveApiUrlGenerator {
// but we use the term "resource" for consistency in our code.
GURL GetFileTrashUrl(const std::string& resource_id) const;
+ // Returns a URL to fetch a list of changes.
+ GURL GetChangesListUrl(bool include_deleted,
+ int max_results,
+ const std::string& page_token,
+ int64 start_change_id) const;
+
// Returns a URL to add a resource to a directory with |resource_id|.
// Note that the |resource_id| is corresponding to the "folder id" in the
// document: https://developers.google.com/drive/v2/reference/children/insert
« no previous file with comments | « chrome/browser/google_apis/drive_api_requests_unittest.cc ('k') | chrome/browser/google_apis/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698