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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_service_interface.h
diff --git a/chrome/browser/google_apis/drive_service_interface.h b/chrome/browser/google_apis/drive_service_interface.h
index 0f564fa71e8c1cd8f0a99b4bcc514628595630a1..dda1ac0e73e738e0551173c7132c11c0142eb020 100644
--- a/chrome/browser/google_apis/drive_service_interface.h
+++ b/chrome/browser/google_apis/drive_service_interface.h
@@ -165,16 +165,17 @@ class DriveServiceInterface {
const std::string& search_query,
const GetResourceListCallback& callback) = 0;
- // Searches the resources for the |search_query| from the directory with
- // |directory_resource_id|. |callback| will be called upon completion.
+ // Searches the resources with the |title|.
+ // |directory_resource_id| is an optional prameter. If it is empty,
+ // the search target is all the existing resources. Otherwise, it is
+ // the resources directly under the directory with |directory_resource_id|.
// If the list is too long, it may be paged. In such a case, a URL to fetch
// remaining results will be included in the returned result. See also
// ContinueGetResourceList.
//
- // Neither |search_query| nor |directory_resource_id| must be empty.
- // |callback| must not be null.
- virtual void SearchInDirectory(
- const std::string& search_query,
+ // |title| must not be empty, and |callback| must not be null.
+ virtual void SearchByTitle(
+ const std::string& title,
const std::string& directory_resource_id,
const GetResourceListCallback& callback) = 0;
« 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