OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // URL utility functions for Google Documents List API (aka WAPI). | 5 // URL utility functions for Google Documents List API (aka WAPI). |
6 | 6 |
7 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ | 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ |
8 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ | 8 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // If |directory_resource_id| is non-empty, a URL for fetching documents in | 54 // If |directory_resource_id| is non-empty, a URL for fetching documents in |
55 // a particular directory is generated. | 55 // a particular directory is generated. |
56 // | 56 // |
57 GURL GenerateDocumentListUrl( | 57 GURL GenerateDocumentListUrl( |
58 const GURL& override_url, | 58 const GURL& override_url, |
59 int start_changestamp, | 59 int start_changestamp, |
60 const std::string& search_string, | 60 const std::string& search_string, |
61 bool shared_with_me, | 61 bool shared_with_me, |
62 const std::string& directory_resource_id); | 62 const std::string& directory_resource_id); |
63 | 63 |
| 64 // Generates a URL for getting the document entry of the given resource ID. |
| 65 GURL GenerateDocumentEntryUrl(const std::string& resource_id); |
| 66 |
| 67 // Generates a URL for getting the root document list feed. |
| 68 // Used to make changes in the root directory (ex. create a directory in the |
| 69 // root directory) |
| 70 GURL GenerateDocumentListRootUrl(); |
| 71 |
| 72 // Generates a URL for getting the account metadata feed. |
| 73 GURL GenerateAccountMetadataUrl(); |
| 74 |
64 } // namespace gdata_wapi_url_util | 75 } // namespace gdata_wapi_url_util |
65 } // namespace google_apis | 76 } // namespace google_apis |
66 | 77 |
67 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ | 78 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_UTIL_H_ |
OLD | NEW |