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

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

Issue 17385023: Get rid of RequestRegistry (part 2): remove cancellation methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused methods in RequestRegisty Created 7 years, 6 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 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
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
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