| 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 #include "chrome/browser/drive/dummy_drive_service.h" | 5 #include "chrome/browser/drive/dummy_drive_service.h" |
| 6 | 6 |
| 7 namespace google_apis { | 7 namespace google_apis { |
| 8 | 8 |
| 9 DummyDriveService::DummyDriveService() {} | 9 DummyDriveService::DummyDriveService() {} |
| 10 | 10 |
| 11 DummyDriveService::~DummyDriveService() {} | 11 DummyDriveService::~DummyDriveService() {} |
| 12 | 12 |
| 13 void DummyDriveService::Initialize(Profile* profile) {} | 13 void DummyDriveService::Initialize(Profile* profile) {} |
| 14 | 14 |
| 15 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {} | 15 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {} |
| 16 | 16 |
| 17 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {} | 17 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {} |
| 18 | 18 |
| 19 bool DummyDriveService::CanSendRequest() const { return true; } | 19 bool DummyDriveService::CanSendRequest() const { return true; } |
| 20 | 20 |
| 21 void DummyDriveService::CancelAll() {} | |
| 22 | |
| 23 bool DummyDriveService::CancelForFilePath(const base::FilePath& file_path) { | |
| 24 return true; | |
| 25 } | |
| 26 | |
| 27 std::string DummyDriveService::CanonicalizeResourceId( | 21 std::string DummyDriveService::CanonicalizeResourceId( |
| 28 const std::string& resource_id) const { | 22 const std::string& resource_id) const { |
| 29 return resource_id; | 23 return resource_id; |
| 30 } | 24 } |
| 31 | 25 |
| 32 bool DummyDriveService::HasAccessToken() const { return true; } | 26 bool DummyDriveService::HasAccessToken() const { return true; } |
| 33 | 27 |
| 34 bool DummyDriveService::HasRefreshToken() const { return true; } | 28 bool DummyDriveService::HasRefreshToken() const { return true; } |
| 35 | 29 |
| 36 void DummyDriveService::ClearAccessToken() { } | 30 void DummyDriveService::ClearAccessToken() { } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const GURL& upload_url, | 151 const GURL& upload_url, |
| 158 int64 content_length, | 152 int64 content_length, |
| 159 const UploadRangeCallback& callback) { return CancelCallback(); } | 153 const UploadRangeCallback& callback) { return CancelCallback(); } |
| 160 | 154 |
| 161 CancelCallback DummyDriveService::AuthorizeApp( | 155 CancelCallback DummyDriveService::AuthorizeApp( |
| 162 const std::string& resource_id, | 156 const std::string& resource_id, |
| 163 const std::string& app_id, | 157 const std::string& app_id, |
| 164 const AuthorizeAppCallback& callback) { return CancelCallback(); } | 158 const AuthorizeAppCallback& callback) { return CancelCallback(); } |
| 165 | 159 |
| 166 } // namespace google_apis | 160 } // namespace google_apis |
| OLD | NEW |