Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: chrome/browser/google_apis/drive_service_interface.h

Issue 14146006: Refactoring: replace SearchInDirectory by SearchByTitle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698