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

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

Issue 10383248: gdata: Add ability to fetch documents in a particular directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build Created 8 years, 7 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
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 std::string& search_string,
212 const std::string& directory_resource_id,
212 const GetDataCallback& callback); 213 const GetDataCallback& callback);
213 virtual ~GetDocumentsOperation(); 214 virtual ~GetDocumentsOperation();
214 215
215 // Sets |url| for document fetching operation. This URL should be set in use 216 // Sets |url| for document fetching operation. This URL should be set in use
216 // case when additional 'pages' of document lists are being fetched. 217 // case when additional 'pages' of document lists are being fetched.
217 void SetUrl(const GURL& url); 218 void SetUrl(const GURL& url);
218 219
219 protected: 220 protected:
220 // Overridden from GetDataOperation. 221 // Overridden from GetDataOperation.
221 virtual GURL GetURL() const OVERRIDE; 222 virtual GURL GetURL() const OVERRIDE;
222 223
223 private: 224 private:
224 GURL override_url_; 225 GURL override_url_;
225 int start_changestamp_; 226 int start_changestamp_;
226 std::string search_string_; 227 std::string search_string_;
228 std::string directory_resource_id_;
227 229
228 DISALLOW_COPY_AND_ASSIGN(GetDocumentsOperation); 230 DISALLOW_COPY_AND_ASSIGN(GetDocumentsOperation);
229 }; 231 };
230 232
231 //========================= GetAccountMetadataOperation ======================== 233 //========================= GetAccountMetadataOperation ========================
232 234
233 // This class performs the operation for fetching account metadata. 235 // This class performs the operation for fetching account metadata.
234 class GetAccountMetadataOperation : public GetDataOperation { 236 class GetAccountMetadataOperation : public GetDataOperation {
235 public: 237 public:
236 GetAccountMetadataOperation(GDataOperationRegistry* registry, 238 GetAccountMetadataOperation(GDataOperationRegistry* registry,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 ResumeUploadCallback callback_; 514 ResumeUploadCallback callback_;
513 ResumeUploadParams params_; 515 ResumeUploadParams params_;
514 bool last_chunk_completed_; 516 bool last_chunk_completed_;
515 517
516 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); 518 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
517 }; 519 };
518 520
519 } // namespace gdata 521 } // namespace gdata
520 522
521 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ 523 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698