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 "google_apis/drive/auth_service_interface.h" | 9 #include "google_apis/drive/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(const std::string& account_id) 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; | |
26 virtual bool HasAccessToken() const OVERRIDE; | 25 virtual bool HasAccessToken() const OVERRIDE; |
27 virtual void RequestAccessToken( | 26 virtual void RequestAccessToken( |
28 const google_apis::AuthStatusCallback& callback) OVERRIDE; | 27 const google_apis::AuthStatusCallback& callback) OVERRIDE; |
29 virtual bool HasRefreshToken() const OVERRIDE; | 28 virtual bool HasRefreshToken() const OVERRIDE; |
30 virtual void ClearAccessToken() OVERRIDE; | 29 virtual void ClearAccessToken() OVERRIDE; |
31 virtual void ClearRefreshToken() OVERRIDE; | 30 virtual void ClearRefreshToken() OVERRIDE; |
32 virtual std::string GetRootResourceId() const OVERRIDE; | 31 virtual std::string GetRootResourceId() const OVERRIDE; |
33 virtual google_apis::CancelCallback GetAllFileList( | 32 virtual google_apis::CancelCallback GetAllFileList( |
34 const google_apis::FileListCallback& callback) OVERRIDE; | 33 const google_apis::FileListCallback& callback) OVERRIDE; |
35 virtual google_apis::CancelCallback GetFileListInDirectory( | 34 virtual google_apis::CancelCallback GetFileListInDirectory( |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual google_apis::CancelCallback AddPermission( | 140 virtual google_apis::CancelCallback AddPermission( |
142 const std::string& resource_id, | 141 const std::string& resource_id, |
143 const std::string& email, | 142 const std::string& email, |
144 google_apis::drive::PermissionRole role, | 143 google_apis::drive::PermissionRole role, |
145 const google_apis::EntryActionCallback& callback) OVERRIDE; | 144 const google_apis::EntryActionCallback& callback) OVERRIDE; |
146 }; | 145 }; |
147 | 146 |
148 } // namespace drive | 147 } // namespace drive |
149 | 148 |
150 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 149 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ |
OLD | NEW |