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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.cc

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.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.cc b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
index 1f548d92b4cbea3d7ecdebe0727bb4b48b4a5e8b..05b1c54a00a6f09cd8ee658c198ad593c6655223 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -111,6 +111,19 @@ void DocumentsService::GetDocuments(const GURL& url,
runner_->StartOperationWithRetry(operation);
}
+void DocumentsService::GetFilelist(const GURL& url,
+ const std::string& search_query,
+ const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ GetFilelistOperation* operation =
+ new GetFilelistOperation(operation_registry(),
+ url,
+ search_query,
+ callback);
+ runner_->StartOperationWithRetry(operation);
+}
+
void DocumentsService::GetChangelist(const GURL& url,
int64 start_changestamp,
const GetDataCallback& callback) {
@@ -135,6 +148,17 @@ void DocumentsService::GetDocumentEntry(const std::string& resource_id,
runner_->StartOperationWithRetry(operation);
}
+void DocumentsService::GetFile(const std::string& file_id,
+ const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ GetFileOperation* operation =
+ new GetFileOperation(operation_registry(),
+ file_id,
+ callback);
+ runner_->StartOperationWithRetry(operation);
+}
+
void DocumentsService::GetAccountMetadata(const GetDataCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_documents_service.h ('k') | chrome/browser/chromeos/gdata/mock_gdata_documents_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698