OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Overridden from GetDataOperation. | 67 // Overridden from GetDataOperation. |
68 virtual GURL GetURL() const OVERRIDE; | 68 virtual GURL GetURL() const OVERRIDE; |
69 | 69 |
70 private: | 70 private: |
71 GURL url_; | 71 GURL url_; |
72 int64 start_changestamp_; | 72 int64 start_changestamp_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation); | 74 DISALLOW_COPY_AND_ASSIGN(GetChangelistOperation); |
75 }; | 75 }; |
76 | 76 |
| 77 //============================= GetFlielistOperation =========================== |
| 78 |
| 79 // This class performs the operation for fetching Filelist. |
| 80 class GetFilelistOperation : public GetDataOperation { |
| 81 public: |
| 82 GetFilelistOperation(GDataOperationRegistry* registry, |
| 83 const GURL& url, |
| 84 const std::string& search_string, |
| 85 const GetDataCallback& callback); |
| 86 virtual ~GetFilelistOperation(); |
| 87 |
| 88 protected: |
| 89 // Overridden from GetDataOperation. |
| 90 virtual GURL GetURL() const OVERRIDE; |
| 91 |
| 92 private: |
| 93 GURL url_; |
| 94 std::string search_string_; |
| 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(GetFilelistOperation); |
| 97 }; |
| 98 |
| 99 //=============================== GetFlieOperation ============================= |
| 100 |
| 101 // This class performs the operation for fetching a file. |
| 102 class GetFileOperation : public GetDataOperation { |
| 103 public: |
| 104 GetFileOperation(GDataOperationRegistry* registry, |
| 105 const std::string& file_id, |
| 106 const GetDataCallback& callback); |
| 107 virtual ~GetFileOperation(); |
| 108 |
| 109 protected: |
| 110 // Overridden from GetDataOperation. |
| 111 virtual GURL GetURL() const OVERRIDE; |
| 112 |
| 113 private: |
| 114 std::string file_id_; |
| 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(GetFileOperation); |
| 117 }; |
| 118 |
77 } // namespace gdata | 119 } // namespace gdata |
78 | 120 |
79 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_OPERATIONS_H_ |
OLD | NEW |