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

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

Issue 445473002: Remove ResourceIdCanonicalizer from DriveServiceInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/fake_drive_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 #include "chrome/browser/drive/drive_api_util.h"
9 8
10 using google_apis::AboutResourceCallback; 9 using google_apis::AboutResourceCallback;
11 using google_apis::AppListCallback; 10 using google_apis::AppListCallback;
12 using google_apis::AuthStatusCallback; 11 using google_apis::AuthStatusCallback;
13 using google_apis::AuthorizeAppCallback; 12 using google_apis::AuthorizeAppCallback;
14 using google_apis::CancelCallback; 13 using google_apis::CancelCallback;
15 using google_apis::ChangeListCallback; 14 using google_apis::ChangeListCallback;
16 using google_apis::DownloadActionCallback; 15 using google_apis::DownloadActionCallback;
17 using google_apis::EntryActionCallback; 16 using google_apis::EntryActionCallback;
18 using google_apis::FileListCallback; 17 using google_apis::FileListCallback;
(...skipping 11 matching lines...) Expand all
30 DummyDriveService::~DummyDriveService() {} 29 DummyDriveService::~DummyDriveService() {}
31 30
32 void DummyDriveService::Initialize(const std::string& account_id) {} 31 void DummyDriveService::Initialize(const std::string& account_id) {}
33 32
34 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {} 33 void DummyDriveService::AddObserver(DriveServiceObserver* observer) {}
35 34
36 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {} 35 void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {}
37 36
38 bool DummyDriveService::CanSendRequest() const { return true; } 37 bool DummyDriveService::CanSendRequest() const { return true; }
39 38
40 ResourceIdCanonicalizer DummyDriveService::GetResourceIdCanonicalizer() const {
41 return util::GetIdentityResourceIdCanonicalizer();
42 }
43
44 bool DummyDriveService::HasAccessToken() const { return true; } 39 bool DummyDriveService::HasAccessToken() const { return true; }
45 40
46 void DummyDriveService::RequestAccessToken(const AuthStatusCallback& callback) { 41 void DummyDriveService::RequestAccessToken(const AuthStatusCallback& callback) {
47 callback.Run(google_apis::HTTP_NOT_MODIFIED, "fake_access_token"); 42 callback.Run(google_apis::HTTP_NOT_MODIFIED, "fake_access_token");
48 } 43 }
49 44
50 bool DummyDriveService::HasRefreshToken() const { return true; } 45 bool DummyDriveService::HasRefreshToken() const { return true; }
51 46
52 void DummyDriveService::ClearAccessToken() { } 47 void DummyDriveService::ClearAccessToken() { }
53 48
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const std::string& app_id, 188 const std::string& app_id,
194 const EntryActionCallback& callback) { return CancelCallback(); } 189 const EntryActionCallback& callback) { return CancelCallback(); }
195 190
196 CancelCallback DummyDriveService::AddPermission( 191 CancelCallback DummyDriveService::AddPermission(
197 const std::string& resource_id, 192 const std::string& resource_id,
198 const std::string& email, 193 const std::string& email,
199 google_apis::drive::PermissionRole role, 194 google_apis::drive::PermissionRole role,
200 const EntryActionCallback& callback) { return CancelCallback(); } 195 const EntryActionCallback& callback) { return CancelCallback(); }
201 196
202 } // namespace drive 197 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/fake_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698