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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.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
Index: chrome/browser/chromeos/gdata/gdata_documents_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.h b/chrome/browser/chromeos/gdata/gdata_documents_service.h
index ab4b779b76101187e3ef41d18ed6e5c212cd2f62..f4b1fe6c09a1a0dcdb890a3066cfbcd88dcb4be5 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.h
@@ -102,12 +102,28 @@ class DocumentsServiceInterface {
int64 start_changestamp,
const GetDataCallback& callback) = 0;
+ // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If
+ // this URL is empty the call will use the default URL. Specify |url| when
+ // pagenated request should be issued.
+ // |search_query| specifies query string, whose syntax is described at
+ // https://developers.google.com/drive/search-parameters
+ virtual void GetFilelist(const GURL& url,
+ const std::string& search_query,
+ const GetDataCallback& callback) = 0;
+
// Fetches single entry metadata from server. The entry's resource id equals
// |resource_id|.
// Upon completion, invokes |callback| with results on the calling thread.
virtual void GetDocumentEntry(const std::string& resource_id,
const GetDataCallback& callback) = 0;
+ // Fetches single entry metadata from server. The entry's file id equals
+ // |file_id|.
+ // Upon completion, invokes |callback| with results on the calling thread.
+ // https://developers.google.com/drive/v2/reference/files/get
+ virtual void GetFile(const std::string& file_id,
+ const GetDataCallback& callback) = 0;
+
// Gets the account metadata from the server using the default account
// metadata URL. Upon completion, invokes |callback| with results on the
// calling thread.
@@ -229,11 +245,16 @@ class DocumentsService : public DocumentsServiceInterface {
const std::string& search_query,
const std::string& directory_resource_id,
const GetDataCallback& callback) OVERRIDE;
+ virtual void GetFilelist(const GURL& url,
+ const std::string& search_query,
+ const GetDataCallback& callback) OVERRIDE;
virtual void GetChangelist(const GURL& url,
int64 start_changestamp,
const GetDataCallback& callback) OVERRIDE;
virtual void GetDocumentEntry(const std::string& resource_id,
const GetDataCallback& callback) OVERRIDE;
+ virtual void GetFile(const std::string& file_id,
+ const GetDataCallback& callback) OVERRIDE;
virtual void GetAccountMetadata(const GetDataCallback& callback) OVERRIDE;
virtual void GetAboutResource(const GetDataCallback& callback) OVERRIDE;
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_operations.cc ('k') | chrome/browser/chromeos/gdata/gdata_documents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698