Chromium Code Reviews| Index: google_apis/drive/drive_api_url_generator.cc |
| diff --git a/google_apis/drive/drive_api_url_generator.cc b/google_apis/drive/drive_api_url_generator.cc |
| index c12b947d3dce9716e679214edc3f908a4113c18b..9addd7508570a4c04721cbec5adbeacb45c3247e 100644 |
| --- a/google_apis/drive/drive_api_url_generator.cc |
| +++ b/google_apis/drive/drive_api_url_generator.cc |
| @@ -17,6 +17,7 @@ namespace { |
| // Hard coded URLs for communication with a google drive server. |
| const char kDriveV2AboutUrl[] = "/drive/v2/about"; |
| const char kDriveV2AppsUrl[] = "/drive/v2/apps"; |
| +const char kDriveV2AppsDeleteUrlFormat[] = "/drive/v2internal/apps/%s"; |
|
hashimoto
2014/01/08 07:20:47
Can we have some comment about this "v2internal"?
kinaba
2014/01/08 09:03:46
Done.
|
| const char kDriveV2ChangelistUrl[] = "/drive/v2/changes"; |
| const char kDriveV2FilesUrl[] = "/drive/v2/files"; |
| const char kDriveV2FileUrlPrefix[] = "/drive/v2/files/"; |
| @@ -60,6 +61,11 @@ GURL DriveApiUrlGenerator::GetAppsListUrl() const { |
| return base_url_.Resolve(kDriveV2AppsUrl); |
| } |
| +GURL DriveApiUrlGenerator::GetAppsDeleteUrl(const std::string& app_id) const { |
| + return base_url_.Resolve(base::StringPrintf( |
| + kDriveV2AppsDeleteUrlFormat, net::EscapePath(app_id).c_str())); |
| +} |
| + |
| GURL DriveApiUrlGenerator::GetFilesGetUrl(const std::string& file_id) const { |
| return base_url_.Resolve(kDriveV2FileUrlPrefix + net::EscapePath(file_id)); |
| } |