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

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

Issue 10821065: Add Drive API specific operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update for comments. 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/drive_api_operations.cc
diff --git a/chrome/browser/chromeos/gdata/drive_api_operations.cc b/chrome/browser/chromeos/gdata/drive_api_operations.cc
new file mode 100644
index 0000000000000000000000000000000000000000..719de5620d1aa3288bc2b07106379a03ffe0091b
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.cc
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/gdata/drive_api_operations.h"
+
+namespace {
+
+const char kDriveV2AboutURL[] = "https://www.googleapis.com/drive/v2/about";
+const char kDriveV2ApplistURL[] = "https://www.googleapis.com/drive/v2/apps";
+
+} // namespace
+
+// TODO(kochi): Rename to namespace drive. http://crbug.com/136371
+namespace gdata {
+
+//============================== GetAboutOperation =============================
+
+GetAboutOperation::GetAboutOperation(
+ GDataOperationRegistry* registry,
+ Profile* profile,
+ const GetDataCallback& callback)
+ : GetDataOperation(registry, profile, callback) {}
+
+GetAboutOperation::~GetAboutOperation() {}
+
+GURL GetAboutOperation::GetURL() const {
+ return GURL(kDriveV2AboutURL);
+}
+
+//============================== GetApplistOperation ===========================
+
+GetApplistOperation::GetApplistOperation(
+ GDataOperationRegistry* registry,
+ Profile* profile,
+ const GetDataCallback& callback)
+ : GetDataOperation(registry, profile, callback) {}
+
+GetApplistOperation::~GetApplistOperation() {}
+
+GURL GetApplistOperation::GetURL() const {
+ return GURL(kDriveV2ApplistURL);
+}
+
+} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_operations.h ('k') | chrome/browser/chromeos/gdata/gdata_documents_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698