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

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

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/drive_api_operations.h
diff --git a/chrome/browser/chromeos/gdata/drive_api_operations.h b/chrome/browser/chromeos/gdata/drive_api_operations.h
new file mode 100644
index 0000000000000000000000000000000000000000..5ad8913a6520ad35780ea2d1b517f99f3aaaacfc
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/drive_api_operations.h
@@ -0,0 +1,54 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
+#define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
+
+#include <string>
+#include <vector>
+
+#include "chrome/browser/chromeos/gdata/operations_base.h"
+
+// TODO(kochi): Rename to namespace drive. http://crbug.com/136371
+namespace gdata {
+
+//============================== GetAboutOperation =============================
+
+// This class performs the operation for fetching About data.
+class GetAboutOperation : public GetDataOperation {
+ public:
+ GetAboutOperation(GDataOperationRegistry* registry,
+ Profile* profile,
+ const GetDataCallback& callback);
+ virtual ~GetAboutOperation();
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GetAboutOperation);
+};
+
+//============================= GetApplistOperation ============================
+
+// This class performs the operation for fetching Applist.
+class GetApplistOperation : public GetDataOperation {
+ public:
+ GetApplistOperation(GDataOperationRegistry* registry,
+ Profile* profile,
+ const GetDataCallback& callback);
+ virtual ~GetApplistOperation();
+
+ protected:
+ // Overridden from GetDataOperation.
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GetApplistOperation);
+};
+
+} // namespace gdata
+
+#endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698