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

Side by Side Diff: chrome/browser/drive/fake_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/fake_drive_service.h ('k') | chrome/browser/drive/gdata_wapi_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/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/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 void FakeDriveService::RemoveObserver(DriveServiceObserver* observer) { 197 void FakeDriveService::RemoveObserver(DriveServiceObserver* observer) {
198 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 198 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
199 } 199 }
200 200
201 bool FakeDriveService::CanSendRequest() const { 201 bool FakeDriveService::CanSendRequest() const {
202 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 202 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
203 return true; 203 return true;
204 } 204 }
205 205
206 void FakeDriveService::CancelAll() {
207 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
208 }
209
210 bool FakeDriveService::CancelForFilePath(const base::FilePath& file_path) {
211 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
212 last_cancelled_file_ = file_path;
213 return true;
214 }
215
216 std::string FakeDriveService::CanonicalizeResourceId( 206 std::string FakeDriveService::CanonicalizeResourceId(
217 const std::string& resource_id) const { 207 const std::string& resource_id) const {
218 return resource_id; 208 return resource_id;
219 } 209 }
220 210
221 bool FakeDriveService::HasAccessToken() const { 211 bool FakeDriveService::HasAccessToken() const {
222 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 212 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
223 return true; 213 return true;
224 } 214 }
225 215
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 if (load_counter) 1441 if (load_counter)
1452 *load_counter += 1; 1442 *load_counter += 1;
1453 base::MessageLoop::current()->PostTask( 1443 base::MessageLoop::current()->PostTask(
1454 FROM_HERE, 1444 FROM_HERE,
1455 base::Bind(callback, 1445 base::Bind(callback,
1456 HTTP_SUCCESS, 1446 HTTP_SUCCESS,
1457 base::Passed(&resource_list))); 1447 base::Passed(&resource_list)));
1458 } 1448 }
1459 1449
1460 } // namespace google_apis 1450 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698