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

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: . 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..f7c5fb5bb45dd7cff0926c655861beb51d608e0c
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.cc
@@ -0,0 +1,46 @@
+// 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) {}
hashimoto 2012/07/27 06:48:37 nit: Please insert a newline here, or remove the n
kochi 2012/07/27 06:56:58 Done.
+
+GetApplistOperation::~GetApplistOperation() {}
+
+GURL GetApplistOperation::GetURL() const {
+ return GURL(kDriveV2ApplistURL);
+}
+
+} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698