| 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_DUMMY_DRIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/drive/drive_service_interface.h" | 8 #include "chrome/browser/drive/drive_service_interface.h" |
| 9 | 9 |
| 10 namespace google_apis { | 10 namespace google_apis { |
| 11 | 11 |
| 12 // Dummy implementation of DriveServiceInterface. | 12 // Dummy implementation of DriveServiceInterface. |
| 13 // All functions do nothing, or return place holder values like 'true'. | 13 // All functions do nothing, or return place holder values like 'true'. |
| 14 class DummyDriveService : public DriveServiceInterface { | 14 class DummyDriveService : public DriveServiceInterface { |
| 15 public: | 15 public: |
| 16 DummyDriveService(); | 16 DummyDriveService(); |
| 17 virtual ~DummyDriveService(); | 17 virtual ~DummyDriveService(); |
| 18 | 18 |
| 19 // DriveServiceInterface Overrides | 19 // DriveServiceInterface Overrides |
| 20 virtual void Initialize(Profile* profile) OVERRIDE; | 20 virtual void Initialize(Profile* profile) OVERRIDE; |
| 21 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 21 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
| 22 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 22 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
| 23 virtual bool CanSendRequest() const OVERRIDE; | 23 virtual bool CanSendRequest() const OVERRIDE; |
| 24 virtual void CancelAll() OVERRIDE; | |
| 25 virtual bool CancelForFilePath(const base::FilePath& file_path) OVERRIDE; | |
| 26 virtual std::string CanonicalizeResourceId( | 24 virtual std::string CanonicalizeResourceId( |
| 27 const std::string& resource_id) const OVERRIDE; | 25 const std::string& resource_id) const OVERRIDE; |
| 28 virtual bool HasAccessToken() const OVERRIDE; | 26 virtual bool HasAccessToken() const OVERRIDE; |
| 29 virtual bool HasRefreshToken() const OVERRIDE; | 27 virtual bool HasRefreshToken() const OVERRIDE; |
| 30 virtual void ClearAccessToken() OVERRIDE; | 28 virtual void ClearAccessToken() OVERRIDE; |
| 31 virtual void ClearRefreshToken() OVERRIDE; | 29 virtual void ClearRefreshToken() OVERRIDE; |
| 32 virtual std::string GetRootResourceId() const OVERRIDE; | 30 virtual std::string GetRootResourceId() const OVERRIDE; |
| 33 virtual CancelCallback GetAllResourceList( | 31 virtual CancelCallback GetAllResourceList( |
| 34 const GetResourceListCallback& callback) OVERRIDE; | 32 const GetResourceListCallback& callback) OVERRIDE; |
| 35 virtual CancelCallback GetResourceListInDirectory( | 33 virtual CancelCallback GetResourceListInDirectory( |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 const UploadRangeCallback& callback) OVERRIDE; | 125 const UploadRangeCallback& callback) OVERRIDE; |
| 128 virtual CancelCallback AuthorizeApp( | 126 virtual CancelCallback AuthorizeApp( |
| 129 const std::string& resource_id, | 127 const std::string& resource_id, |
| 130 const std::string& app_id, | 128 const std::string& app_id, |
| 131 const AuthorizeAppCallback& callback) OVERRIDE; | 129 const AuthorizeAppCallback& callback) OVERRIDE; |
| 132 }; | 130 }; |
| 133 | 131 |
| 134 } // namespace google_apis | 132 } // namespace google_apis |
| 135 | 133 |
| 136 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 134 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ |
| OLD | NEW |