| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |