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_GENERATOR_H_ | 7 #ifndef GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_ |
8 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_ | 8 #define GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace google_apis { | 14 namespace google_apis { |
15 | 15 |
16 // The class is used to generate URLs for communicating with the WAPI server. | 16 // The class is used to generate URLs for communicating with the WAPI server. |
17 // for production, and the local server for testing. | 17 // for production, and the local server for testing. |
18 class GDataWapiUrlGenerator { | 18 class GDataWapiUrlGenerator { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Generates a URL for downloading a file. | 130 // Generates a URL for downloading a file. |
131 GURL GenerateDownloadFileUrl(const std::string& resource_id) const; | 131 GURL GenerateDownloadFileUrl(const std::string& resource_id) const; |
132 | 132 |
133 private: | 133 private: |
134 const GURL base_url_; | 134 const GURL base_url_; |
135 const GURL base_download_url_; | 135 const GURL base_download_url_; |
136 }; | 136 }; |
137 | 137 |
138 } // namespace google_apis | 138 } // namespace google_apis |
139 | 139 |
140 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_ | 140 #endif // GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_ |
OLD | NEW |