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

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: Remove SetURL() and specify url in the constructor. 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..aa455c4bc1f1b6c7037d475eef11be9b7f5e88fe 100644
--- a/chrome/browser/chromeos/gdata/drive_api_operations.h
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.h
@@ -47,6 +47,33 @@ class GetApplistOperation : public GetDataOperation {
DISALLOW_COPY_AND_ASSIGN(GetApplistOperation);
};
+//============================ GetChangelistOperation ==========================
+
+// This class performs the operation for fetching changelist.
+class GetChangelistOperation : public GetDataOperation {
+ public:
+ // |start_changestamp| specifies the starting point of change list or 0 if
+ // all changes are necessary.
+ // |url| specifies URL for document feed fetching operation. If empty URL is
+ // passed, the default URL is used and returns the first page of the result.
+ // When non-first page result is requested, |url| should be specified.
+ GetChangelistOperation(GDataOperationRegistry* registry,
+ const GURL& url,
+ int64 start_changestamp,
+ const GetDataCallback& callback);
+ virtual ~GetChangelistOperation();
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ GURL 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