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

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

Issue 10821065: Add Drive API specific operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 8666e77b9af4d9292dd7ae7b167f29afd23ec3eb..b7ba538e6eb80df715e8a7e42a4d2b8992285c95 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -8,8 +8,10 @@
#include "base/bind.h"
#include "base/message_loop_proxy.h"
+#include "chrome/browser/chromeos/gdata/drive_api_operations.h"
#include "chrome/browser/chromeos/gdata/gdata_operation_runner.h"
#include "chrome/browser/chromeos/gdata/gdata_operations.h"
+#include "chrome/browser/chromeos/gdata/gdata_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/net/url_util.h"
#include "content/public/browser/browser_thread.h"
@@ -133,6 +135,22 @@ void DocumentsService::GetAccountMetadata(const GetDataCallback& callback) {
runner_->StartOperationWithRetry(operation);
}
+void DocumentsService::GetAboutResource(const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ GetAboutOperation* operation =
+ new GetAboutOperation(operation_registry(), profile_, callback);
+ runner_->StartOperationWithRetry(operation);
+}
+
+void DocumentsService::GetApplicationList(const GetDataCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ GetApplistOperation* operation =
+ new GetApplistOperation(operation_registry(), profile_, callback);
+ runner_->StartOperationWithRetry(operation);
+}
+
void DocumentsService::DownloadDocument(
const FilePath& virtual_path,
const FilePath& local_cache_path,

Powered by Google App Engine
This is Rietveld 408576698