OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // The base URL for the file download server for production. | 26 // The base URL for the file download server for production. |
27 static const char kBaseDownloadUrlForProduction[]; | 27 static const char kBaseDownloadUrlForProduction[]; |
28 | 28 |
29 // Returns a URL to invoke "About: get" method. | 29 // Returns a URL to invoke "About: get" method. |
30 GURL GetAboutGetUrl() const; | 30 GURL GetAboutGetUrl() const; |
31 | 31 |
32 // Returns a URL to invoke "Apps: list" method. | 32 // Returns a URL to invoke "Apps: list" method. |
33 GURL GetAppsListUrl() const; | 33 GURL GetAppsListUrl() const; |
34 | 34 |
| 35 // Returns a URL to uninstall an app with the give |app_id|. |
| 36 GURL GetAppsDeleteUrl(const std::string& app_id) const; |
| 37 |
35 // Returns a URL to fetch a file metadata. | 38 // Returns a URL to fetch a file metadata. |
36 GURL GetFilesGetUrl(const std::string& file_id) const; | 39 GURL GetFilesGetUrl(const std::string& file_id) const; |
37 | 40 |
38 // Returns a URL to create a resource. | 41 // Returns a URL to create a resource. |
39 GURL GetFilesInsertUrl() const; | 42 GURL GetFilesInsertUrl() const; |
40 | 43 |
41 // Returns a URL to patch file metadata. | 44 // Returns a URL to patch file metadata. |
42 GURL GetFilesPatchUrl(const std::string& file_id, | 45 GURL GetFilesPatchUrl(const std::string& file_id, |
43 bool set_modified_date, | 46 bool set_modified_date, |
44 bool update_viewed_date) const; | 47 bool update_viewed_date) const; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 private: | 87 private: |
85 const GURL base_url_; | 88 const GURL base_url_; |
86 const GURL base_download_url_; | 89 const GURL base_download_url_; |
87 | 90 |
88 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. | 91 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. |
89 }; | 92 }; |
90 | 93 |
91 } // namespace google_apis | 94 } // namespace google_apis |
92 | 95 |
93 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ | 96 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ |
OLD | NEW |