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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc

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
Index: chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc b/chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc
index 39ce2d42757ed7f81e354ce6466d308866f8997d..935a351a005809125e60e745fe675d4388e75156 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.cc
@@ -149,7 +149,7 @@ std::string DriveServiceOnWorker::GetRootResourceId() const {
google_apis::CancelCallback DriveServiceOnWorker::GetRemainingFileList(
const GURL& next_link,
- const google_apis::GetResourceListCallback& callback) {
+ const google_apis::FileListCallback& callback) {
ui_task_runner_->PostTask(
FROM_HERE,
base::Bind(&DriveServiceWrapper::GetRemainingFileList,
@@ -180,12 +180,12 @@ google_apis::CancelCallback DriveServiceOnWorker::GetResourceEntry(
return google_apis::CancelCallback();
}
-google_apis::CancelCallback DriveServiceOnWorker::GetResourceListInDirectory(
+google_apis::CancelCallback DriveServiceOnWorker::GetFileListInDirectory(
const std::string& directory_resource_id,
- const google_apis::GetResourceListCallback& callback) {
+ const google_apis::FileListCallback& callback) {
ui_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&DriveServiceWrapper::GetResourceListInDirectory,
+ base::Bind(&DriveServiceWrapper::GetFileListInDirectory,
wrapper_,
directory_resource_id,
RelayCallbackToTaskRunner(
@@ -217,7 +217,7 @@ google_apis::CancelCallback DriveServiceOnWorker::RemoveResourceFromDirectory(
google_apis::CancelCallback DriveServiceOnWorker::SearchByTitle(
const std::string& title,
const std::string& directory_resource_id,
- const google_apis::GetResourceListCallback& callback) {
+ const google_apis::FileListCallback& callback) {
ui_task_runner_->PostTask(
FROM_HERE,
base::Bind(&DriveServiceWrapper::SearchByTitle,
@@ -281,15 +281,15 @@ void DriveServiceOnWorker::ClearRefreshToken() {
NOTREACHED();
}
-google_apis::CancelCallback DriveServiceOnWorker::GetAllResourceList(
- const google_apis::GetResourceListCallback& callback) {
+google_apis::CancelCallback DriveServiceOnWorker::GetAllFileList(
+ const google_apis::FileListCallback& callback) {
NOTREACHED();
return google_apis::CancelCallback();
}
google_apis::CancelCallback DriveServiceOnWorker::Search(
const std::string& search_query,
- const google_apis::GetResourceListCallback& callback) {
+ const google_apis::FileListCallback& callback) {
NOTREACHED();
return google_apis::CancelCallback();
}

Powered by Google App Engine
This is Rietveld 408576698