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

Unified Diff: chrome/browser/chromeos/gdata/drive_api_operations.h

Issue 10836125: Add GetChangelist operation for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/drive_api_operations.h
diff --git a/chrome/browser/chromeos/gdata/drive_api_operations.h b/chrome/browser/chromeos/gdata/drive_api_operations.h
index 697f3dea17ccf0e466e135233479db76ae2f1c44..30437373fb7dfc0942ad9aec8f3016a2f61019fd 100644
--- a/chrome/browser/chromeos/gdata/drive_api_operations.h
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.h
@@ -47,6 +47,31 @@ class GetApplistOperation : public GetDataOperation {
DISALLOW_COPY_AND_ASSIGN(GetApplistOperation);
};
+//============================ GetChangelistOperation ==========================
+
+// This class performs the operation for fetching changelist.
+class GetChangelistOperation : public GetDataOperation {
+ public:
+ GetChangelistOperation(GDataOperationRegistry* registry,
hashimoto 2012/08/07 07:36:57 Please add a comment about the role of |start_chan
kochi 2012/08/07 07:46:04 Done.
+ int64 start_changestamp,
+ const GetDataCallback& callback);
+ virtual ~GetChangelistOperation();
+
+ // Sets |url| for changelist fetching operation. This should be used when it
+ // is necessary to explicitly specify the next page URL.
+ void SetURL(const GURL& url);
hashimoto 2012/08/07 07:36:57 Do we need this method? Can't |url| be passed to t
kochi 2012/08/07 07:46:04 Changed the comment to be more specific. The know
hashimoto 2012/08/07 07:57:43 What I meant was deleting SetURL and allowing pass
kochi 2012/08/07 09:06:52 Agreed, removed SetURL() from this file and gdata_
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ GURL override_url_;
+ int64 start_changestamp_;
+
+ DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation);
+};
+
} // namespace gdata
#endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698