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

Unified Diff: google_apis/drive/drive_api_url_generator.h

Issue 2894513003: Fetch files shared in Team Drives by specifying allTeamDrives corpora. (Closed)
Patch Set: Address review comments. Created 3 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 | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/drive_api_url_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_url_generator.h
diff --git a/google_apis/drive/drive_api_url_generator.h b/google_apis/drive/drive_api_url_generator.h
index 089912744a28fea4d0e3831d2e213d6e995bb00d..6746b98cf2135b7ce395f3f0e6ea15c01330ba3c 100644
--- a/google_apis/drive/drive_api_url_generator.h
+++ b/google_apis/drive/drive_api_url_generator.h
@@ -15,6 +15,12 @@
namespace google_apis {
+enum FilesListCorpora {
hashimoto 2017/06/05 04:29:22 Please add comments to describe what this enum is
yamaguchi 2017/06/05 05:09:07 Done.
+ CORPORA_DEFAULT,
hashimoto 2017/06/05 04:29:22 How about making this an enum class? enum class F
yamaguchi 2017/06/05 05:09:07 Done.
+ CORPORA_TEAM_DRIVE,
+ CORPORA_ALL_TEAM_DRIVES,
+};
+
// This class is used to generate URLs for communicating with drive api
// servers for production, and a local server for testing.
class DriveApiUrlGenerator {
@@ -68,6 +74,8 @@ class DriveApiUrlGenerator {
// Returns a URL to fetch file list.
GURL GetFilesListUrl(int max_results,
const std::string& page_token,
+ FilesListCorpora corpora,
+ const std::string& team_drive_id,
const std::string& q) const;
// Returns a URL to delete a resource with the given |file_id|.
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698