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 COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ | 5 #ifndef COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ |
6 #define COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ | 6 #define COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // completion. | 210 // completion. |
211 // If the list is too long, it may be paged. In such a case, a URL to fetch | 211 // If the list is too long, it may be paged. In such a case, a URL to fetch |
212 // remaining results will be included in the returned result. See also | 212 // remaining results will be included in the returned result. See also |
213 // GetRemainingFileList. | 213 // GetRemainingFileList. |
214 // | 214 // |
215 // |callback| must not be null. | 215 // |callback| must not be null. |
216 virtual google_apis::CancelCallback GetAllFileList( | 216 virtual google_apis::CancelCallback GetAllFileList( |
217 const google_apis::FileListCallback& callback) = 0; | 217 const google_apis::FileListCallback& callback) = 0; |
218 | 218 |
219 // Fetches a file list in the directory with |directory_resource_id|. | 219 // Fetches a file list in the directory with |directory_resource_id|. |
| 220 // |team_drive_id| must be an empty string if |directory_resource_id| points |
| 221 // a directory under My Drive, or the ID of the team drive which the target |
| 222 // directory is owned by. |
220 // |callback| will be called upon completion. | 223 // |callback| will be called upon completion. |
221 // If the list is too long, it may be paged. In such a case, a URL to fetch | 224 // If the list is too long, it may be paged. In such a case, a URL to fetch |
222 // remaining results will be included in the returned result. See also | 225 // remaining results will be included in the returned result. See also |
223 // GetRemainingFileList. | 226 // GetRemainingFileList. |
224 // | 227 // |
225 // |directory_resource_id| must not be empty. | 228 // |directory_resource_id| must not be empty. |
226 // |callback| must not be null. | 229 // |callback| must not be null. |
227 virtual google_apis::CancelCallback GetFileListInDirectory( | 230 virtual google_apis::CancelCallback GetFileListInDirectory( |
228 const std::string& directory_resource_id, | 231 const std::string& directory_resource_id, |
| 232 const std::string& team_drive_id, |
229 const google_apis::FileListCallback& callback) = 0; | 233 const google_apis::FileListCallback& callback) = 0; |
230 | 234 |
231 // Searches the resources for the |search_query| from all the user's | 235 // Searches the resources for the |search_query| from all the user's |
232 // resources. |callback| will be called upon completion. | 236 // resources. |callback| will be called upon completion. |
233 // If the list is too long, it may be paged. In such a case, a URL to fetch | 237 // If the list is too long, it may be paged. In such a case, a URL to fetch |
234 // remaining results will be included in the returned result. See also | 238 // remaining results will be included in the returned result. See also |
235 // GetRemainingFileList. | 239 // GetRemainingFileList. |
236 // | 240 // |
237 // |search_query| must not be empty. | 241 // |search_query| must not be empty. |
238 // |callback| must not be null. | 242 // |callback| must not be null. |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 const google_apis::EntryActionCallback& callback) = 0; | 490 const google_apis::EntryActionCallback& callback) = 0; |
487 | 491 |
488 // Starts batch request and returns |BatchRequestConfigurator|. | 492 // Starts batch request and returns |BatchRequestConfigurator|. |
489 virtual std::unique_ptr<BatchRequestConfiguratorInterface> | 493 virtual std::unique_ptr<BatchRequestConfiguratorInterface> |
490 StartBatchRequest() = 0; | 494 StartBatchRequest() = 0; |
491 }; | 495 }; |
492 | 496 |
493 } // namespace drive | 497 } // namespace drive |
494 | 498 |
495 #endif // COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ | 499 #endif // COMPONENTS_DRIVE_SERVICE_DRIVE_SERVICE_INTERFACE_H_ |
OLD | NEW |