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

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

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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
« 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Returns the file path whose request is cancelled just before this method 96 // Returns the file path whose request is cancelled just before this method
97 // invocation. 97 // invocation.
98 const base::FilePath& last_cancelled_file() const { 98 const base::FilePath& last_cancelled_file() const {
99 return last_cancelled_file_; 99 return last_cancelled_file_;
100 } 100 }
101 101
102 // Returns the (fake) URL for the link. 102 // Returns the (fake) URL for the link.
103 static GURL GetFakeLinkUrl(const std::string& resource_id); 103 static GURL GetFakeLinkUrl(const std::string& resource_id);
104 104
105 // DriveServiceInterface Overrides 105 // DriveServiceInterface Overrides
106 virtual void Initialize() OVERRIDE; 106 virtual void Initialize(const std::string& account_id) OVERRIDE;
107 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; 107 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
108 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; 108 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE;
109 virtual bool CanSendRequest() const OVERRIDE; 109 virtual bool CanSendRequest() const OVERRIDE;
110 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; 110 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE;
111 virtual std::string GetRootResourceId() const OVERRIDE; 111 virtual std::string GetRootResourceId() const OVERRIDE;
112 virtual bool HasAccessToken() const OVERRIDE; 112 virtual bool HasAccessToken() const OVERRIDE;
113 virtual void RequestAccessToken( 113 virtual void RequestAccessToken(
114 const google_apis::AuthStatusCallback& callback) OVERRIDE; 114 const google_apis::AuthStatusCallback& callback) OVERRIDE;
115 virtual bool HasRefreshToken() const OVERRIDE; 115 virtual bool HasRefreshToken() const OVERRIDE;
116 virtual void ClearAccessToken() OVERRIDE; 116 virtual void ClearAccessToken() OVERRIDE;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 bool never_return_all_resource_list_; 316 bool never_return_all_resource_list_;
317 base::FilePath last_cancelled_file_; 317 base::FilePath last_cancelled_file_;
318 GURL share_url_base_; 318 GURL share_url_base_;
319 319
320 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 320 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
321 }; 321 };
322 322
323 } // namespace drive 323 } // namespace drive
324 324
325 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 325 #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