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

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

Issue 23714004: Implement GetResourceListInDirectoryByWapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/drive/drive_service_interface.h
diff --git a/chrome/browser/drive/drive_service_interface.h b/chrome/browser/drive/drive_service_interface.h
index d9fa83e5b6b91359978bf302ea65b974c3c4b735..3df2938f6c9c7fee8384b9326b7f2fa9ded70cf8 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -364,6 +364,27 @@ class DriveServiceInterface {
const std::string& resource_id,
const std::string& app_id,
const google_apis::AuthorizeAppCallback& callback) = 0;
+
+ // This is introduced as a temporary short term solution of the performance
+ // regression issue on Drive API v2.
+ //
+ // This fetches the resource list in a directory by usinig GData WAPI
+ // regardless of base protocol. In other words, even if we enabels Drive API
+ // v2, this method uses GData WAPI to fetch the resource list.
+ //
+ // |directory_resource_id| must not be empty.
+ // |callback| must not be null.
+ virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi(
+ const std::string& directory_resource_id,
+ const google_apis::GetResourceListCallback& callback) = 0;
+
+ // GetResourceListInDirectoryByWapi can be paged. This method fetches the
+ // following pages.
+ //
+ // |callback| must not be null.
+ virtual google_apis::CancelCallback GetRemainingResourceList(
+ const GURL& next_url,
+ const google_apis::GetResourceListCallback& callback) = 0;
};
} // namespace drive

Powered by Google App Engine
This is Rietveld 408576698