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

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

Issue 10830300: Add GetFilelist/GetFile operations for Drive V2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments. 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 aa455c4bc1f1b6c7037d475eef11be9b7f5e88fe..7946953f708fc6110456fc339c424d1a1eacdf3b 100644
--- a/chrome/browser/chromeos/gdata/drive_api_operations.h
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.h
@@ -74,6 +74,48 @@ class GetChangelistOperation : public GetDataOperation {
DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation);
};
+//============================= GetFlielistOperation ===========================
+
+// This class performs the operation for fetching Filelist.
+class GetFilelistOperation : public GetDataOperation {
+ public:
+ GetFilelistOperation(GDataOperationRegistry* registry,
+ const GURL& url,
+ const std::string& search_string,
+ const GetDataCallback& callback);
+ virtual ~GetFilelistOperation();
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ GURL url_;
+ std::string search_string_;
+
+ DISALLOW_COPY_AND_ASSIGN(GetFilelistOperation);
+};
+
+//=============================== GetFlieOperation =============================
+
+// This class performs the operation for fetching a file.
+class GetFileOperation : public GetDataOperation {
+ public:
+ GetFileOperation(GDataOperationRegistry* registry,
+ const std::string& file_id,
+ const GetDataCallback& callback);
+ virtual ~GetFileOperation();
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ std::string file_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(GetFileOperation);
+};
+
} // 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