| 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 "chrome/browser/drive/drive_service_interface.h" | 9 #include "chrome/browser/drive/drive_service_interface.h" |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // resource_id and app_id. | 118 // resource_id and app_id. |
| 119 void set_open_url_format(const std::string& url_format) { | 119 void set_open_url_format(const std::string& url_format) { |
| 120 open_url_format_ = url_format; | 120 open_url_format_ = url_format; |
| 121 } | 121 } |
| 122 | 122 |
| 123 // DriveServiceInterface Overrides | 123 // DriveServiceInterface Overrides |
| 124 virtual void Initialize(const std::string& account_id) OVERRIDE; | 124 virtual void Initialize(const std::string& account_id) OVERRIDE; |
| 125 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 125 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
| 126 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 126 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
| 127 virtual bool CanSendRequest() const OVERRIDE; | 127 virtual bool CanSendRequest() const OVERRIDE; |
| 128 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; | |
| 129 virtual std::string GetRootResourceId() const OVERRIDE; | 128 virtual std::string GetRootResourceId() const OVERRIDE; |
| 130 virtual bool HasAccessToken() const OVERRIDE; | 129 virtual bool HasAccessToken() const OVERRIDE; |
| 131 virtual void RequestAccessToken( | 130 virtual void RequestAccessToken( |
| 132 const google_apis::AuthStatusCallback& callback) OVERRIDE; | 131 const google_apis::AuthStatusCallback& callback) OVERRIDE; |
| 133 virtual bool HasRefreshToken() const OVERRIDE; | 132 virtual bool HasRefreshToken() const OVERRIDE; |
| 134 virtual void ClearAccessToken() OVERRIDE; | 133 virtual void ClearAccessToken() OVERRIDE; |
| 135 virtual void ClearRefreshToken() OVERRIDE; | 134 virtual void ClearRefreshToken() OVERRIDE; |
| 136 virtual google_apis::CancelCallback GetAllFileList( | 135 virtual google_apis::CancelCallback GetAllFileList( |
| 137 const google_apis::FileListCallback& callback) OVERRIDE; | 136 const google_apis::FileListCallback& callback) OVERRIDE; |
| 138 virtual google_apis::CancelCallback GetFileListInDirectory( | 137 virtual google_apis::CancelCallback GetFileListInDirectory( |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 GURL share_url_base_; | 355 GURL share_url_base_; |
| 357 std::string app_json_template_; | 356 std::string app_json_template_; |
| 358 std::string open_url_format_; | 357 std::string open_url_format_; |
| 359 | 358 |
| 360 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 359 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
| 361 }; | 360 }; |
| 362 | 361 |
| 363 } // namespace drive | 362 } // namespace drive |
| 364 | 363 |
| 365 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 364 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
| OLD | NEW |