| 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_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // TODO(kochi): Further split gdata_operations.h and include only necessary | 10 // TODO(kochi): Further split gdata_operations.h and include only necessary |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // If the list is too long, it may be paged. In such a case, a URL to fetch | 158 // If the list is too long, it may be paged. In such a case, a URL to fetch |
| 159 // remaining results will be included in the returned result. See also | 159 // remaining results will be included in the returned result. See also |
| 160 // ContinueGetResourceList. | 160 // ContinueGetResourceList. |
| 161 // | 161 // |
| 162 // |search_query| must not be empty. | 162 // |search_query| must not be empty. |
| 163 // |callback| must not be null. | 163 // |callback| must not be null. |
| 164 virtual void Search( | 164 virtual void Search( |
| 165 const std::string& search_query, | 165 const std::string& search_query, |
| 166 const GetResourceListCallback& callback) = 0; | 166 const GetResourceListCallback& callback) = 0; |
| 167 | 167 |
| 168 // Searches the resources for the |search_query| from the directory with | 168 // Searches the resources with the |title|. |
| 169 // |directory_resource_id|. |callback| will be called upon completion. | 169 // |directory_resource_id| is an optional prameter. If it is empty, |
| 170 // the search target is all the existing resources. Otherwise, it is |
| 171 // the resources directly under the directory with |directory_resource_id|. |
| 170 // If the list is too long, it may be paged. In such a case, a URL to fetch | 172 // If the list is too long, it may be paged. In such a case, a URL to fetch |
| 171 // remaining results will be included in the returned result. See also | 173 // remaining results will be included in the returned result. See also |
| 172 // ContinueGetResourceList. | 174 // ContinueGetResourceList. |
| 173 // | 175 // |
| 174 // Neither |search_query| nor |directory_resource_id| must be empty. | 176 // |title| must not be empty, and |callback| must not be null. |
| 175 // |callback| must not be null. | 177 virtual void SearchByTitle( |
| 176 virtual void SearchInDirectory( | 178 const std::string& title, |
| 177 const std::string& search_query, | |
| 178 const std::string& directory_resource_id, | 179 const std::string& directory_resource_id, |
| 179 const GetResourceListCallback& callback) = 0; | 180 const GetResourceListCallback& callback) = 0; |
| 180 | 181 |
| 181 // Fetches change list since |start_changestamp|. |callback| will be | 182 // Fetches change list since |start_changestamp|. |callback| will be |
| 182 // called upon completion. | 183 // called upon completion. |
| 183 // If the list is too long, it may be paged. In such a case, a URL to fetch | 184 // If the list is too long, it may be paged. In such a case, a URL to fetch |
| 184 // remaining results will be included in the returned result. See also | 185 // remaining results will be included in the returned result. See also |
| 185 // ContinueGetResourceList. | 186 // ContinueGetResourceList. |
| 186 // | 187 // |
| 187 // |callback| must not be null. | 188 // |callback| must not be null. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Upon completion, invokes |callback| with the link to open the file with | 353 // Upon completion, invokes |callback| with the link to open the file with |
| 353 // the provided app. |callback| must not be null. | 354 // the provided app. |callback| must not be null. |
| 354 virtual void AuthorizeApp(const std::string& resource_id, | 355 virtual void AuthorizeApp(const std::string& resource_id, |
| 355 const std::string& app_id, | 356 const std::string& app_id, |
| 356 const AuthorizeAppCallback& callback) = 0; | 357 const AuthorizeAppCallback& callback) = 0; |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 } // namespace google_apis | 360 } // namespace google_apis |
| 360 | 361 |
| 361 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ | 362 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ |
| OLD | NEW |