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 |