| Index: chrome/browser/google_apis/gdata_wapi_url_util.cc
|
| diff --git a/chrome/browser/google_apis/gdata_wapi_url_util.cc b/chrome/browser/google_apis/gdata_wapi_url_util.cc
|
| index 3d90cf3f76004dba99087f26f44c27ade727c462..26a63907ee7145153c985d567567ef57b476a11a 100644
|
| --- a/chrome/browser/google_apis/gdata_wapi_url_util.cc
|
| +++ b/chrome/browser/google_apis/gdata_wapi_url_util.cc
|
| @@ -25,6 +25,18 @@ const char kGetDocumentListURLForAllDocuments[] =
|
| const char kGetDocumentListURLForDirectoryFormat[] =
|
| "https://docs.google.com/feeds/default/private/full/%s/contents/-/mine";
|
|
|
| +// URL requesting single document entry whose resource id is specified by "%s".
|
| +const char kGetDocumentEntryURLFormat[] =
|
| + "https://docs.google.com/feeds/default/private/full/%s";
|
| +
|
| +// Root document list url.
|
| +const char kDocumentListRootURL[] =
|
| + "https://docs.google.com/feeds/default/private/full";
|
| +
|
| +// Metadata feed with things like user quota.
|
| +const char kAccountMetadataURL[] =
|
| + "https://docs.google.com/feeds/metadata/default";
|
| +
|
| #ifndef NDEBUG
|
| // Use smaller 'page' size while debugging to ensure we hit feed reload
|
| // almost always. Be careful not to use something too small on account that
|
| @@ -120,5 +132,19 @@ GURL GenerateDocumentListUrl(
|
| return AddFeedUrlParams(url, max_docs, start_changestamp, search_string);
|
| }
|
|
|
| +GURL GenerateDocumentEntryUrl(const std::string& resource_id) {
|
| + GURL result = GURL(base::StringPrintf(kGetDocumentEntryURLFormat,
|
| + net::EscapePath(resource_id).c_str()));
|
| + return AddStandardUrlParams(result);
|
| +}
|
| +
|
| +GURL GenerateDocumentListRootUrl() {
|
| + return AddStandardUrlParams(GURL(kDocumentListRootURL));
|
| +}
|
| +
|
| +GURL GenerateAccountMetadataUrl() {
|
| + return AddMetadataUrlParams(GURL(kAccountMetadataURL));
|
| +}
|
| +
|
| } // namespace gdata_wapi_url_util
|
| } // namespace google_apis
|
|
|