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

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

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 #include "chrome/browser/drive/fake_drive_service.h" 5 #include "chrome/browser/drive/fake_drive_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1261
1262 CancelCallback FakeDriveService::AuthorizeApp( 1262 CancelCallback FakeDriveService::AuthorizeApp(
1263 const std::string& resource_id, 1263 const std::string& resource_id,
1264 const std::string& app_id, 1264 const std::string& app_id,
1265 const AuthorizeAppCallback& callback) { 1265 const AuthorizeAppCallback& callback) {
1266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1267 DCHECK(!callback.is_null()); 1267 DCHECK(!callback.is_null());
1268 return CancelCallback(); 1268 return CancelCallback();
1269 } 1269 }
1270 1270
1271 CancelCallback FakeDriveService::GetResourceListInDirectoryByWapi(
1272 const std::string& directory_resource_id,
1273 const google_apis::GetResourceListCallback& callback) {
1274 return GetResourceListInDirectory(directory_resource_id, callback);
1275 }
1276
1277 CancelCallback FakeDriveService::GetRemainingResourceList(
1278 const GURL& next_url,
1279 const google_apis::GetResourceListCallback& callback) {
1280 return ContinueGetResourceList(next_url, callback);
1281 }
1282
1271 void FakeDriveService::AddNewFile(const std::string& content_type, 1283 void FakeDriveService::AddNewFile(const std::string& content_type,
1272 const std::string& content_data, 1284 const std::string& content_data,
1273 const std::string& parent_resource_id, 1285 const std::string& parent_resource_id,
1274 const std::string& title, 1286 const std::string& title,
1275 bool shared_with_me, 1287 bool shared_with_me,
1276 const GetResourceEntryCallback& callback) { 1288 const GetResourceEntryCallback& callback) {
1277 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1289 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1278 DCHECK(!callback.is_null()); 1290 DCHECK(!callback.is_null());
1279 1291
1280 if (offline_) { 1292 if (offline_) {
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 FROM_HERE, 1652 FROM_HERE,
1641 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list))); 1653 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list)));
1642 } 1654 }
1643 1655
1644 GURL FakeDriveService::GetNewUploadSessionUrl() { 1656 GURL FakeDriveService::GetNewUploadSessionUrl() {
1645 return GURL("https://upload_session_url/" + 1657 return GURL("https://upload_session_url/" +
1646 base::Int64ToString(next_upload_sequence_number_++)); 1658 base::Int64ToString(next_upload_sequence_number_++));
1647 } 1659 }
1648 1660
1649 } // namespace drive 1661 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698