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

Unified Diff: chrome/browser/drive/drive_service_interface.h

Issue 305913002: drive: Replace GetResourceListCallback in DriveServiceInterface with FileListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_service_interface.h
diff --git a/chrome/browser/drive/drive_service_interface.h b/chrome/browser/drive/drive_service_interface.h
index ae46e6bd03d63828dd9ae1daa98662693d0bdb97..619c8b289c18ef199c5d8939c5e7261647bae79a 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -141,17 +141,17 @@ class DriveServiceInterface {
// Returns the resource id for the root directory.
virtual std::string GetRootResourceId() const = 0;
- // Fetches a resource list of the account. |callback| will be called upon
+ // Fetches a file list of the account. |callback| will be called upon
// completion.
// 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
// GetRemainingFileList.
//
// |callback| must not be null.
- virtual google_apis::CancelCallback GetAllResourceList(
- const google_apis::GetResourceListCallback& callback) = 0;
+ virtual google_apis::CancelCallback GetAllFileList(
+ const google_apis::FileListCallback& callback) = 0;
- // Fetches a resource list in the directory with |directory_resource_id|.
+ // Fetches a file list in the directory with |directory_resource_id|.
// |callback| will be called upon completion.
// 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
@@ -159,9 +159,9 @@ class DriveServiceInterface {
//
// |directory_resource_id| must not be empty.
// |callback| must not be null.
- virtual google_apis::CancelCallback GetResourceListInDirectory(
+ virtual google_apis::CancelCallback GetFileListInDirectory(
const std::string& directory_resource_id,
- const google_apis::GetResourceListCallback& callback) = 0;
+ const google_apis::FileListCallback& callback) = 0;
// Searches the resources for the |search_query| from all the user's
// resources. |callback| will be called upon completion.
@@ -173,7 +173,7 @@ class DriveServiceInterface {
// |callback| must not be null.
virtual google_apis::CancelCallback Search(
const std::string& search_query,
- const google_apis::GetResourceListCallback& callback) = 0;
+ const google_apis::FileListCallback& callback) = 0;
// Searches the resources with the |title|.
// |directory_resource_id| is an optional parameter. If it is empty,
@@ -187,7 +187,7 @@ class DriveServiceInterface {
virtual google_apis::CancelCallback SearchByTitle(
const std::string& title,
const std::string& directory_resource_id,
- const google_apis::GetResourceListCallback& callback) = 0;
+ const google_apis::FileListCallback& callback) = 0;
// Fetches change list since |start_changestamp|. |callback| will be
// called upon completion.
@@ -210,7 +210,7 @@ class DriveServiceInterface {
const GURL& next_link,
const google_apis::ChangeListCallback& callback) = 0;
- // The result of GetAllResourceList(), GetResourceListInDirectory(), Search()
+ // The result of GetAllFileList(), GetFileListInDirectory(), Search()
// and SearchByTitle() may be paged. In such a case, a next link to fetch
// remaining result is returned. The page token can be used for this method.
// |callback| will be called upon completion.
@@ -218,7 +218,7 @@ class DriveServiceInterface {
// |next_link| must not be empty. |callback| must not be null.
virtual google_apis::CancelCallback GetRemainingFileList(
const GURL& next_link,
- const google_apis::GetResourceListCallback& callback) = 0;
+ const google_apis::FileListCallback& callback) = 0;
// Fetches single entry metadata from server. The entry's resource id equals
// |resource_id|.
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698