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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_api_operations.h

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
7
8 #include <string>
9
10 #include "chrome/browser/google_apis/operations_base.h"
11
12 // TODO(kochi): Rename to namespace drive. http://crbug.com/136371
13 namespace gdata {
14
15 //============================== GetAboutOperation =============================
16
17 // This class performs the operation for fetching About data.
18 class GetAboutOperation : public GetDataOperation {
19 public:
20 GetAboutOperation(OperationRegistry* registry,
21 const GetDataCallback& callback);
22 virtual ~GetAboutOperation();
23
24 protected:
25 // Overridden from GetDataOperation.
26 virtual GURL GetURL() const OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(GetAboutOperation);
30 };
31
32 //============================= GetApplistOperation ============================
33
34 // This class performs the operation for fetching Applist.
35 class GetApplistOperation : public GetDataOperation {
36 public:
37 GetApplistOperation(OperationRegistry* registry,
38 const GetDataCallback& callback);
39 virtual ~GetApplistOperation();
40
41 protected:
42 // Overridden from GetDataOperation.
43 virtual GURL GetURL() const OVERRIDE;
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(GetApplistOperation);
47 };
48
49 //============================ GetChangelistOperation ==========================
50
51 // This class performs the operation for fetching changelist.
52 class GetChangelistOperation : public GetDataOperation {
53 public:
54 // |start_changestamp| specifies the starting point of change list or 0 if
55 // all changes are necessary.
56 // |url| specifies URL for document feed fetching operation. If empty URL is
57 // passed, the default URL is used and returns the first page of the result.
58 // When non-first page result is requested, |url| should be specified.
59 GetChangelistOperation(OperationRegistry* registry,
60 const GURL& url,
61 int64 start_changestamp,
62 const GetDataCallback& callback);
63 virtual ~GetChangelistOperation();
64
65 protected:
66 // Overridden from GetDataOperation.
67 virtual GURL GetURL() const OVERRIDE;
68
69 private:
70 GURL url_;
71 int64 start_changestamp_;
72
73 DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation);
74 };
75
76 //============================= GetFlielistOperation ===========================
77
78 // This class performs the operation for fetching Filelist.
79 class GetFilelistOperation : public GetDataOperation {
80 public:
81 GetFilelistOperation(OperationRegistry* registry,
82 const GURL& url,
83 const std::string& search_string,
84 const GetDataCallback& callback);
85 virtual ~GetFilelistOperation();
86
87 protected:
88 // Overridden from GetDataOperation.
89 virtual GURL GetURL() const OVERRIDE;
90
91 private:
92 GURL url_;
93 std::string search_string_;
94
95 DISALLOW_COPY_AND_ASSIGN(GetFilelistOperation);
96 };
97
98 //=============================== GetFlieOperation =============================
99
100 // This class performs the operation for fetching a file.
101 class GetFileOperation : public GetDataOperation {
102 public:
103 GetFileOperation(OperationRegistry* registry,
104 const std::string& file_id,
105 const GetDataCallback& callback);
106 virtual ~GetFileOperation();
107
108 protected:
109 // Overridden from GetDataOperation.
110 virtual GURL GetURL() const OVERRIDE;
111
112 private:
113 std::string file_id_;
114
115 DISALLOW_COPY_AND_ASSIGN(GetFileOperation);
116 };
117
118 } // namespace gdata
119
120 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698