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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual google_apis::CancelCallback GetAboutResource( | 114 virtual google_apis::CancelCallback GetAboutResource( |
115 const google_apis::GetAboutResourceCallback& callback) OVERRIDE; | 115 const google_apis::GetAboutResourceCallback& callback) OVERRIDE; |
116 virtual google_apis::CancelCallback GetAppList( | 116 virtual google_apis::CancelCallback GetAppList( |
117 const google_apis::GetAppListCallback& callback) OVERRIDE; | 117 const google_apis::GetAppListCallback& callback) OVERRIDE; |
118 virtual google_apis::CancelCallback DeleteResource( | 118 virtual google_apis::CancelCallback DeleteResource( |
119 const std::string& resource_id, | 119 const std::string& resource_id, |
120 const std::string& etag, | 120 const std::string& etag, |
121 const google_apis::EntryActionCallback& callback) OVERRIDE; | 121 const google_apis::EntryActionCallback& callback) OVERRIDE; |
122 virtual google_apis::CancelCallback DownloadFile( | 122 virtual google_apis::CancelCallback DownloadFile( |
123 const base::FilePath& local_cache_path, | 123 const base::FilePath& local_cache_path, |
124 const GURL& download_url, | 124 const std::string& resource_id, |
125 const google_apis::DownloadActionCallback& download_action_callback, | 125 const google_apis::DownloadActionCallback& download_action_callback, |
126 const google_apis::GetContentCallback& get_content_callback, | 126 const google_apis::GetContentCallback& get_content_callback, |
127 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 127 const google_apis::ProgressCallback& progress_callback) OVERRIDE; |
128 virtual google_apis::CancelCallback CopyResource( | 128 virtual google_apis::CancelCallback CopyResource( |
129 const std::string& resource_id, | 129 const std::string& resource_id, |
130 const std::string& parent_resource_id, | 130 const std::string& parent_resource_id, |
131 const std::string& new_name, | 131 const std::string& new_name, |
132 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; | 132 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; |
133 // The new resource ID for the copied document will look like | 133 // The new resource ID for the copied document will look like |
134 // |resource_id| + "_copied". | 134 // |resource_id| + "_copied". |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 int about_resource_load_count_; | 267 int about_resource_load_count_; |
268 bool offline_; | 268 bool offline_; |
269 base::FilePath last_cancelled_file_; | 269 base::FilePath last_cancelled_file_; |
270 | 270 |
271 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 271 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
272 }; | 272 }; |
273 | 273 |
274 } // namespace drive | 274 } // namespace drive |
275 | 275 |
276 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 276 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |