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

Side by Side Diff: chrome/browser/drive/fake_drive_service.h

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.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('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 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/drive/drive_service_interface.h" 10 #include "chrome/browser/drive/drive_service_interface.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 // Returns the (fake) URL for the link. 76 // Returns the (fake) URL for the link.
77 static GURL GetFakeLinkUrl(const std::string& resource_id); 77 static GURL GetFakeLinkUrl(const std::string& resource_id);
78 78
79 // DriveServiceInterface Overrides 79 // DriveServiceInterface Overrides
80 virtual void Initialize(Profile* profile) OVERRIDE; 80 virtual void Initialize(Profile* profile) OVERRIDE;
81 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; 81 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
82 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; 82 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE;
83 virtual bool CanSendRequest() const OVERRIDE; 83 virtual bool CanSendRequest() const OVERRIDE;
84 virtual void CancelAll() OVERRIDE;
85 virtual bool CancelForFilePath(const base::FilePath& file_path) OVERRIDE;
86 virtual std::string CanonicalizeResourceId( 84 virtual std::string CanonicalizeResourceId(
87 const std::string& resource_id) const OVERRIDE; 85 const std::string& resource_id) const OVERRIDE;
88 virtual std::string GetRootResourceId() const OVERRIDE; 86 virtual std::string GetRootResourceId() const OVERRIDE;
89 virtual bool HasAccessToken() const OVERRIDE; 87 virtual bool HasAccessToken() const OVERRIDE;
90 virtual bool HasRefreshToken() const OVERRIDE; 88 virtual bool HasRefreshToken() const OVERRIDE;
91 virtual void ClearAccessToken() OVERRIDE; 89 virtual void ClearAccessToken() OVERRIDE;
92 virtual void ClearRefreshToken() OVERRIDE; 90 virtual void ClearRefreshToken() OVERRIDE;
93 virtual CancelCallback GetAllResourceList( 91 virtual CancelCallback GetAllResourceList(
94 const GetResourceListCallback& callback) OVERRIDE; 92 const GetResourceListCallback& callback) OVERRIDE;
95 virtual CancelCallback GetResourceListInDirectory( 93 virtual CancelCallback GetResourceListInDirectory(
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 int about_resource_load_count_; 266 int about_resource_load_count_;
269 bool offline_; 267 bool offline_;
270 base::FilePath last_cancelled_file_; 268 base::FilePath last_cancelled_file_;
271 269
272 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 270 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
273 }; 271 };
274 272
275 } // namespace google_apis 273 } // namespace google_apis
276 274
277 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 275 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698