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_GDATA_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 }; | 201 }; |
202 | 202 |
203 //============================ GetDocumentsOperation =========================== | 203 //============================ GetDocumentsOperation =========================== |
204 | 204 |
205 // This class performs the operation for fetching a document list. | 205 // This class performs the operation for fetching a document list. |
206 class GetDocumentsOperation : public GetDataOperation { | 206 class GetDocumentsOperation : public GetDataOperation { |
207 public: | 207 public: |
208 GetDocumentsOperation(GDataOperationRegistry* registry, | 208 GetDocumentsOperation(GDataOperationRegistry* registry, |
209 Profile* profile, | 209 Profile* profile, |
210 int start_changestamp, | 210 int start_changestamp, |
| 211 const std::string& search_string, |
211 const GetDataCallback& callback); | 212 const GetDataCallback& callback); |
212 virtual ~GetDocumentsOperation(); | 213 virtual ~GetDocumentsOperation(); |
213 | 214 |
214 // Sets |url| for document fetching operation. This URL should be set in use | 215 // Sets |url| for document fetching operation. This URL should be set in use |
215 // case when additional 'pages' of document lists are being fetched. | 216 // case when additional 'pages' of document lists are being fetched. |
216 void SetUrl(const GURL& url); | 217 void SetUrl(const GURL& url); |
217 | 218 |
218 protected: | 219 protected: |
219 // Overridden from GetDataOperation. | 220 // Overridden from GetDataOperation. |
220 virtual GURL GetURL() const OVERRIDE; | 221 virtual GURL GetURL() const OVERRIDE; |
221 | 222 |
222 private: | 223 private: |
223 GURL override_url_; | 224 GURL override_url_; |
224 int start_changestamp_; | 225 int start_changestamp_; |
| 226 std::string search_string_; |
225 | 227 |
226 DISALLOW_COPY_AND_ASSIGN(GetDocumentsOperation); | 228 DISALLOW_COPY_AND_ASSIGN(GetDocumentsOperation); |
227 }; | 229 }; |
228 | 230 |
229 //========================= GetAccountMetadataOperation ======================== | 231 //========================= GetAccountMetadataOperation ======================== |
230 | 232 |
231 // This class performs the operation for fetching account metadata. | 233 // This class performs the operation for fetching account metadata. |
232 class GetAccountMetadataOperation : public GetDataOperation { | 234 class GetAccountMetadataOperation : public GetDataOperation { |
233 public: | 235 public: |
234 GetAccountMetadataOperation(GDataOperationRegistry* registry, | 236 GetAccountMetadataOperation(GDataOperationRegistry* registry, |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 ResumeUploadCallback callback_; | 512 ResumeUploadCallback callback_; |
511 ResumeUploadParams params_; | 513 ResumeUploadParams params_; |
512 bool last_chunk_completed_; | 514 bool last_chunk_completed_; |
513 | 515 |
514 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); | 516 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); |
515 }; | 517 }; |
516 | 518 |
517 } // namespace gdata | 519 } // namespace gdata |
518 | 520 |
519 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 521 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
OLD | NEW |