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 #include "chrome/browser/google_apis/auth_service_interface.h" | 9 #include "chrome/browser/google_apis/auth_service_interface.h" |
10 | 10 |
11 namespace drive { | 11 namespace drive { |
12 | 12 |
13 // Dummy implementation of DriveServiceInterface. | 13 // Dummy implementation of DriveServiceInterface. |
14 // All functions do nothing, or return place holder values like 'true'. | 14 // All functions do nothing, or return place holder values like 'true'. |
15 class DummyDriveService : public DriveServiceInterface { | 15 class DummyDriveService : public DriveServiceInterface { |
16 public: | 16 public: |
17 DummyDriveService(); | 17 DummyDriveService(); |
18 virtual ~DummyDriveService(); | 18 virtual ~DummyDriveService(); |
19 | 19 |
20 // DriveServiceInterface Overrides | 20 // DriveServiceInterface Overrides |
21 virtual void Initialize() OVERRIDE; | 21 virtual void Initialize(const std::string& account_id) OVERRIDE; |
22 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 22 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
23 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 23 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
24 virtual bool CanSendRequest() const OVERRIDE; | 24 virtual bool CanSendRequest() const OVERRIDE; |
25 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; | 25 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; |
26 virtual bool HasAccessToken() const OVERRIDE; | 26 virtual bool HasAccessToken() const OVERRIDE; |
27 virtual void RequestAccessToken( | 27 virtual void RequestAccessToken( |
28 const google_apis::AuthStatusCallback& callback) OVERRIDE; | 28 const google_apis::AuthStatusCallback& callback) OVERRIDE; |
29 virtual bool HasRefreshToken() const OVERRIDE; | 29 virtual bool HasRefreshToken() const OVERRIDE; |
30 virtual void ClearAccessToken() OVERRIDE; | 30 virtual void ClearAccessToken() OVERRIDE; |
31 virtual void ClearRefreshToken() OVERRIDE; | 31 virtual void ClearRefreshToken() OVERRIDE; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const std::string& directory_resource_id, | 140 const std::string& directory_resource_id, |
141 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 141 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
142 virtual google_apis::CancelCallback GetRemainingResourceList( | 142 virtual google_apis::CancelCallback GetRemainingResourceList( |
143 const GURL& next_link, | 143 const GURL& next_link, |
144 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 144 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
145 }; | 145 }; |
146 | 146 |
147 } // namespace drive | 147 } // namespace drive |
148 | 148 |
149 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 149 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ |
OLD | NEW |