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 #include "base/bind.h" | 7 #include "base/bind.h" |
8 | 8 |
9 using google_apis::AboutResourceCallback; | 9 using google_apis::AboutResourceCallback; |
10 using google_apis::AppListCallback; | 10 using google_apis::AppListCallback; |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Returns the argument string. | 28 // Returns the argument string. |
29 std::string Identity(const std::string& resource_id) { return resource_id; } | 29 std::string Identity(const std::string& resource_id) { return resource_id; } |
30 | 30 |
31 } // namespace | 31 } // namespace |
32 | 32 |
33 DummyDriveService::DummyDriveService() {} | 33 DummyDriveService::DummyDriveService() {} |
34 | 34 |
35 DummyDriveService::~DummyDriveService() {} | 35 DummyDriveService::~DummyDriveService() {} |
36 | 36 |
37 void DummyDriveService::Initialize() {} | 37 void DummyDriveService::Initialize(const std::string& account_id) {} |
38 | 38 |
39 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {} | 39 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {} |
40 | 40 |
41 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {} | 41 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {} |
42 | 42 |
43 bool DummyDriveService::CanSendRequest() const { return true; } | 43 bool DummyDriveService::CanSendRequest() const { return true; } |
44 | 44 |
45 ResourceIdCanonicalizer DummyDriveService::GetResourceIdCanonicalizer() const { | 45 ResourceIdCanonicalizer DummyDriveService::GetResourceIdCanonicalizer() const { |
46 return base::Bind(&Identity); | 46 return base::Bind(&Identity); |
47 } | 47 } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 CancelCallback DummyDriveService::GetResourceListInDirectoryByWapi( | 199 CancelCallback DummyDriveService::GetResourceListInDirectoryByWapi( |
200 const std::string& directory_resource_id, | 200 const std::string& directory_resource_id, |
201 const GetResourceListCallback& callback) { return CancelCallback(); } | 201 const GetResourceListCallback& callback) { return CancelCallback(); } |
202 | 202 |
203 CancelCallback DummyDriveService::GetRemainingResourceList( | 203 CancelCallback DummyDriveService::GetRemainingResourceList( |
204 const GURL& next_link, | 204 const GURL& next_link, |
205 const GetResourceListCallback& callback) { return CancelCallback(); } | 205 const GetResourceListCallback& callback) { return CancelCallback(); } |
206 | 206 |
207 } // namespace drive | 207 } // namespace drive |
OLD | NEW |