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

Side by Side Diff: chrome/browser/drive/fake_drive_service.h

Issue 23714004: Implement GetResourceListInDirectoryByWapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_DRIVE_FAKE_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/drive/drive_service_interface.h" 10 #include "chrome/browser/drive/drive_service_interface.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 const google_apis::UploadRangeCallback& callback, 210 const google_apis::UploadRangeCallback& callback,
211 const google_apis::ProgressCallback& progress_callback) OVERRIDE; 211 const google_apis::ProgressCallback& progress_callback) OVERRIDE;
212 virtual google_apis::CancelCallback GetUploadStatus( 212 virtual google_apis::CancelCallback GetUploadStatus(
213 const GURL& upload_url, 213 const GURL& upload_url,
214 int64 content_length, 214 int64 content_length,
215 const google_apis::UploadRangeCallback& callback) OVERRIDE; 215 const google_apis::UploadRangeCallback& callback) OVERRIDE;
216 virtual google_apis::CancelCallback AuthorizeApp( 216 virtual google_apis::CancelCallback AuthorizeApp(
217 const std::string& resource_id, 217 const std::string& resource_id,
218 const std::string& app_id, 218 const std::string& app_id,
219 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; 219 const google_apis::AuthorizeAppCallback& callback) OVERRIDE;
220 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi(
221 const std::string& directory_resource_id,
222 const google_apis::GetResourceListCallback& callback) OVERRIDE;
223 virtual google_apis::CancelCallback GetRemainingResourceList(
224 const GURL& next_url,
225 const google_apis::GetResourceListCallback& callback) OVERRIDE;
220 226
221 // Adds a new file with the given parameters. On success, returns 227 // Adds a new file with the given parameters. On success, returns
222 // HTTP_CREATED with the parsed entry. 228 // HTTP_CREATED with the parsed entry.
223 // |callback| must not be null. 229 // |callback| must not be null.
224 void AddNewFile(const std::string& content_type, 230 void AddNewFile(const std::string& content_type,
225 const std::string& content_data, 231 const std::string& content_data,
226 const std::string& parent_resource_id, 232 const std::string& parent_resource_id,
227 const std::string& title, 233 const std::string& title,
228 bool shared_with_me, 234 bool shared_with_me,
229 const google_apis::GetResourceEntryCallback& callback); 235 const google_apis::GetResourceEntryCallback& callback);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool offline_; 306 bool offline_;
301 base::FilePath last_cancelled_file_; 307 base::FilePath last_cancelled_file_;
302 GURL share_url_base_; 308 GURL share_url_base_;
303 309
304 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 310 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
305 }; 311 };
306 312
307 } // namespace drive 313 } // namespace drive
308 314
309 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 315 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698