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 #include "components/drive/service/dummy_drive_service.h" | 5 #include "components/drive/service/dummy_drive_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 | 8 |
9 using google_apis::AboutResourceCallback; | 9 using google_apis::AboutResourceCallback; |
10 using google_apis::AppListCallback; | 10 using google_apis::AppListCallback; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 CancelCallback DummyDriveService::Search( | 62 CancelCallback DummyDriveService::Search( |
63 const std::string& search_query, | 63 const std::string& search_query, |
64 const FileListCallback& callback) { return CancelCallback(); } | 64 const FileListCallback& callback) { return CancelCallback(); } |
65 | 65 |
66 CancelCallback DummyDriveService::SearchByTitle( | 66 CancelCallback DummyDriveService::SearchByTitle( |
67 const std::string& title, | 67 const std::string& title, |
68 const std::string& directory_resource_id, | 68 const std::string& directory_resource_id, |
69 const FileListCallback& callback) { return CancelCallback(); } | 69 const FileListCallback& callback) { return CancelCallback(); } |
70 | 70 |
71 CancelCallback DummyDriveService::GetChangeList( | 71 CancelCallback DummyDriveService::GetChangeList( |
72 int64 start_changestamp, | 72 int64_t start_changestamp, |
73 const ChangeListCallback& callback) { return CancelCallback(); } | 73 const ChangeListCallback& callback) { |
| 74 return CancelCallback(); |
| 75 } |
74 | 76 |
75 CancelCallback DummyDriveService::GetRemainingChangeList( | 77 CancelCallback DummyDriveService::GetRemainingChangeList( |
76 const GURL& next_link, | 78 const GURL& next_link, |
77 const ChangeListCallback& callback) { return CancelCallback(); } | 79 const ChangeListCallback& callback) { return CancelCallback(); } |
78 | 80 |
79 CancelCallback DummyDriveService::GetRemainingFileList( | 81 CancelCallback DummyDriveService::GetRemainingFileList( |
80 const GURL& next_link, | 82 const GURL& next_link, |
81 const FileListCallback& callback) { return CancelCallback(); } | 83 const FileListCallback& callback) { return CancelCallback(); } |
82 | 84 |
83 CancelCallback DummyDriveService::GetFileResource( | 85 CancelCallback DummyDriveService::GetFileResource( |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const EntryActionCallback& callback) { return CancelCallback(); } | 142 const EntryActionCallback& callback) { return CancelCallback(); } |
141 | 143 |
142 CancelCallback DummyDriveService::AddNewDirectory( | 144 CancelCallback DummyDriveService::AddNewDirectory( |
143 const std::string& parent_resource_id, | 145 const std::string& parent_resource_id, |
144 const std::string& directory_title, | 146 const std::string& directory_title, |
145 const AddNewDirectoryOptions& options, | 147 const AddNewDirectoryOptions& options, |
146 const FileResourceCallback& callback) { return CancelCallback(); } | 148 const FileResourceCallback& callback) { return CancelCallback(); } |
147 | 149 |
148 CancelCallback DummyDriveService::InitiateUploadNewFile( | 150 CancelCallback DummyDriveService::InitiateUploadNewFile( |
149 const std::string& content_type, | 151 const std::string& content_type, |
150 int64 content_length, | 152 int64_t content_length, |
151 const std::string& parent_resource_id, | 153 const std::string& parent_resource_id, |
152 const std::string& title, | 154 const std::string& title, |
153 const UploadNewFileOptions& options, | 155 const UploadNewFileOptions& options, |
154 const InitiateUploadCallback& callback) { | 156 const InitiateUploadCallback& callback) { |
155 return CancelCallback(); | 157 return CancelCallback(); |
156 } | 158 } |
157 | 159 |
158 CancelCallback DummyDriveService::InitiateUploadExistingFile( | 160 CancelCallback DummyDriveService::InitiateUploadExistingFile( |
159 const std::string& content_type, | 161 const std::string& content_type, |
160 int64 content_length, | 162 int64_t content_length, |
161 const std::string& resource_id, | 163 const std::string& resource_id, |
162 const UploadExistingFileOptions& options, | 164 const UploadExistingFileOptions& options, |
163 const InitiateUploadCallback& callback) { | 165 const InitiateUploadCallback& callback) { |
164 return CancelCallback(); | 166 return CancelCallback(); |
165 } | 167 } |
166 | 168 |
167 CancelCallback DummyDriveService::ResumeUpload( | 169 CancelCallback DummyDriveService::ResumeUpload( |
168 const GURL& upload_url, | 170 const GURL& upload_url, |
169 int64 start_position, | 171 int64_t start_position, |
170 int64 end_position, | 172 int64_t end_position, |
171 int64 content_length, | 173 int64_t content_length, |
172 const std::string& content_type, | 174 const std::string& content_type, |
173 const base::FilePath& local_file_path, | 175 const base::FilePath& local_file_path, |
174 const UploadRangeCallback& callback, | 176 const UploadRangeCallback& callback, |
175 const ProgressCallback& progress_callback) { return CancelCallback(); } | 177 const ProgressCallback& progress_callback) { |
| 178 return CancelCallback(); |
| 179 } |
176 | 180 |
177 CancelCallback DummyDriveService::GetUploadStatus( | 181 CancelCallback DummyDriveService::GetUploadStatus( |
178 const GURL& upload_url, | 182 const GURL& upload_url, |
179 int64 content_length, | 183 int64_t content_length, |
180 const UploadRangeCallback& callback) { return CancelCallback(); } | 184 const UploadRangeCallback& callback) { |
| 185 return CancelCallback(); |
| 186 } |
181 | 187 |
182 CancelCallback DummyDriveService::MultipartUploadNewFile( | 188 CancelCallback DummyDriveService::MultipartUploadNewFile( |
183 const std::string& content_type, | 189 const std::string& content_type, |
184 int64 content_length, | 190 int64_t content_length, |
185 const std::string& parent_resource_id, | 191 const std::string& parent_resource_id, |
186 const std::string& title, | 192 const std::string& title, |
187 const base::FilePath& local_file_path, | 193 const base::FilePath& local_file_path, |
188 const UploadNewFileOptions& options, | 194 const UploadNewFileOptions& options, |
189 const FileResourceCallback& callback, | 195 const FileResourceCallback& callback, |
190 const ProgressCallback& progress_callback) { | 196 const ProgressCallback& progress_callback) { |
191 return CancelCallback(); | 197 return CancelCallback(); |
192 } | 198 } |
193 | 199 |
194 CancelCallback DummyDriveService::MultipartUploadExistingFile( | 200 CancelCallback DummyDriveService::MultipartUploadExistingFile( |
195 const std::string& content_type, | 201 const std::string& content_type, |
196 int64 content_length, | 202 int64_t content_length, |
197 const std::string& resource_id, | 203 const std::string& resource_id, |
198 const base::FilePath& local_file_path, | 204 const base::FilePath& local_file_path, |
199 const UploadExistingFileOptions& options, | 205 const UploadExistingFileOptions& options, |
200 const FileResourceCallback& callback, | 206 const FileResourceCallback& callback, |
201 const ProgressCallback& progress_callback) { | 207 const ProgressCallback& progress_callback) { |
202 return CancelCallback(); | 208 return CancelCallback(); |
203 } | 209 } |
204 | 210 |
205 CancelCallback DummyDriveService::AuthorizeApp( | 211 CancelCallback DummyDriveService::AuthorizeApp( |
206 const std::string& resource_id, | 212 const std::string& resource_id, |
207 const std::string& app_id, | 213 const std::string& app_id, |
208 const AuthorizeAppCallback& callback) { return CancelCallback(); } | 214 const AuthorizeAppCallback& callback) { return CancelCallback(); } |
209 | 215 |
210 CancelCallback DummyDriveService::UninstallApp( | 216 CancelCallback DummyDriveService::UninstallApp( |
211 const std::string& app_id, | 217 const std::string& app_id, |
212 const EntryActionCallback& callback) { return CancelCallback(); } | 218 const EntryActionCallback& callback) { return CancelCallback(); } |
213 | 219 |
214 CancelCallback DummyDriveService::AddPermission( | 220 CancelCallback DummyDriveService::AddPermission( |
215 const std::string& resource_id, | 221 const std::string& resource_id, |
216 const std::string& email, | 222 const std::string& email, |
217 google_apis::drive::PermissionRole role, | 223 google_apis::drive::PermissionRole role, |
218 const EntryActionCallback& callback) { return CancelCallback(); } | 224 const EntryActionCallback& callback) { return CancelCallback(); } |
219 scoped_ptr<BatchRequestConfiguratorInterface> | 225 scoped_ptr<BatchRequestConfiguratorInterface> |
220 DummyDriveService::StartBatchRequest() { | 226 DummyDriveService::StartBatchRequest() { |
221 return scoped_ptr<BatchRequestConfiguratorInterface>(); | 227 return scoped_ptr<BatchRequestConfiguratorInterface>(); |
222 } | 228 } |
223 | 229 |
224 } // namespace drive | 230 } // namespace drive |
OLD | NEW |