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

Side by Side Diff: google_apis/drive/drive_api_url_generator.h

Issue 2885323002: Add URL generator / json parser for getting start_page_token of changes. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
6 #define GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Returns a URL to delete a resource with the given |file_id|. 73 // Returns a URL to delete a resource with the given |file_id|.
74 GURL GetFilesDeleteUrl(const std::string& file_id) const; 74 GURL GetFilesDeleteUrl(const std::string& file_id) const;
75 75
76 // Returns a URL to trash a resource with the given |file_id|. 76 // Returns a URL to trash a resource with the given |file_id|.
77 GURL GetFilesTrashUrl(const std::string& file_id) const; 77 GURL GetFilesTrashUrl(const std::string& file_id) const;
78 78
79 // Returns a URL to invoke "TeamDrives: list" method. 79 // Returns a URL to invoke "TeamDrives: list" method.
80 GURL GetTeamDriveListUrl(int max_results, 80 GURL GetTeamDriveListUrl(int max_results,
81 const std::string& page_token) const; 81 const std::string& page_token) const;
82 82
83 // Returns a URL to get the starting pageToken for listing future changes.
84 GURL GetChangesGetStartPageTokenUrl(const std::string& team_drive_id) const;
85
83 // Returns a URL to fetch a list of changes. 86 // Returns a URL to fetch a list of changes.
84 GURL GetChangesListUrl(bool include_deleted, 87 GURL GetChangesListUrl(bool include_deleted,
85 int max_results, 88 int max_results,
86 const std::string& page_token, 89 const std::string& page_token,
87 int64_t start_change_id, 90 int64_t start_change_id,
88 const std::string& team_dirve_id) const; 91 const std::string& team_dirve_id) const;
89 92
90 // Returns a URL to add a resource to a directory with |folder_id|. 93 // Returns a URL to add a resource to a directory with |folder_id|.
91 GURL GetChildrenInsertUrl(const std::string& folder_id) const; 94 GURL GetChildrenInsertUrl(const std::string& folder_id) const;
92 95
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const GURL base_download_url_; 138 const GURL base_download_url_;
136 const GURL base_thumbnail_url_; 139 const GURL base_thumbnail_url_;
137 const bool enable_team_drives_; 140 const bool enable_team_drives_;
138 141
139 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. 142 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here.
140 }; 143 };
141 144
142 } // namespace google_apis 145 } // namespace google_apis
143 146
144 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 147 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_parser_unittest.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