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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual google_apis::CancelCallback DownloadFile( | 156 virtual google_apis::CancelCallback DownloadFile( |
157 const base::FilePath& local_cache_path, | 157 const base::FilePath& local_cache_path, |
158 const std::string& resource_id, | 158 const std::string& resource_id, |
159 const google_apis::DownloadActionCallback& download_action_callback, | 159 const google_apis::DownloadActionCallback& download_action_callback, |
160 const google_apis::GetContentCallback& get_content_callback, | 160 const google_apis::GetContentCallback& get_content_callback, |
161 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 161 const google_apis::ProgressCallback& progress_callback) OVERRIDE; |
162 virtual google_apis::CancelCallback CopyResource( | 162 virtual google_apis::CancelCallback CopyResource( |
163 const std::string& resource_id, | 163 const std::string& resource_id, |
164 const std::string& parent_resource_id, | 164 const std::string& parent_resource_id, |
165 const std::string& new_title, | 165 const std::string& new_title, |
| 166 const base::Time& last_modified, |
166 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; | 167 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; |
167 // The new resource ID for the copied document will look like | 168 // The new resource ID for the copied document will look like |
168 // |resource_id| + "_copied". | 169 // |resource_id| + "_copied". |
169 virtual google_apis::CancelCallback CopyHostedDocument( | 170 virtual google_apis::CancelCallback CopyHostedDocument( |
170 const std::string& resource_id, | 171 const std::string& resource_id, |
171 const std::string& new_title, | 172 const std::string& new_title, |
172 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; | 173 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; |
173 virtual google_apis::CancelCallback MoveResource( | 174 virtual google_apis::CancelCallback MoveResource( |
174 const std::string& resource_id, | 175 const std::string& resource_id, |
175 const std::string& parent_resource_id, | 176 const std::string& parent_resource_id, |
176 const std::string& new_title, | 177 const std::string& new_title, |
| 178 const base::Time& last_modified, |
177 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; | 179 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; |
178 virtual google_apis::CancelCallback RenameResource( | 180 virtual google_apis::CancelCallback RenameResource( |
179 const std::string& resource_id, | 181 const std::string& resource_id, |
180 const std::string& new_title, | 182 const std::string& new_title, |
181 const google_apis::EntryActionCallback& callback) OVERRIDE; | 183 const google_apis::EntryActionCallback& callback) OVERRIDE; |
182 virtual google_apis::CancelCallback TouchResource( | 184 virtual google_apis::CancelCallback TouchResource( |
183 const std::string& resource_id, | 185 const std::string& resource_id, |
184 const base::Time& modified_date, | 186 const base::Time& modified_date, |
185 const base::Time& last_viewed_by_me_date, | 187 const base::Time& last_viewed_by_me_date, |
186 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; | 188 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 bool never_return_all_resource_list_; | 318 bool never_return_all_resource_list_; |
317 base::FilePath last_cancelled_file_; | 319 base::FilePath last_cancelled_file_; |
318 GURL share_url_base_; | 320 GURL share_url_base_; |
319 | 321 |
320 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 322 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
321 }; | 323 }; |
322 | 324 |
323 } // namespace drive | 325 } // namespace drive |
324 | 326 |
325 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 327 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |