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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Returns a URL to add a resource to a directory with |folder_id|. | 69 // Returns a URL to add a resource to a directory with |folder_id|. |
70 GURL GetChildrenInsertUrl(const std::string& folder_id) const; | 70 GURL GetChildrenInsertUrl(const std::string& folder_id) const; |
71 | 71 |
72 // Returns a URL to remove a resource with |child_id| from a directory | 72 // Returns a URL to remove a resource with |child_id| from a directory |
73 // with |folder_id|. | 73 // with |folder_id|. |
74 GURL GetChildrenDeleteUrl(const std::string& child_id, | 74 GURL GetChildrenDeleteUrl(const std::string& child_id, |
75 const std::string& folder_id) const; | 75 const std::string& folder_id) const; |
76 | 76 |
77 // Returns a URL to initiate uploading a new file. | 77 // Returns a URL to initiate uploading a new file. |
78 GURL GetInitiateUploadNewFileUrl() const; | 78 GURL GetInitiateUploadNewFileUrl(bool set_modified_date) const; |
79 | 79 |
80 // Returns a URL to initiate uploading an existing file specified by | 80 // Returns a URL to initiate uploading an existing file specified by |
81 // |resource_id|. | 81 // |resource_id|. |
82 GURL GetInitiateUploadExistingFileUrl(const std::string& resource_id) const; | 82 GURL GetInitiateUploadExistingFileUrl(const std::string& resource_id, |
| 83 bool set_modified_date) const; |
83 | 84 |
84 // Generates a URL for downloading a file. | 85 // Generates a URL for downloading a file. |
85 GURL GenerateDownloadFileUrl(const std::string& resource_id) const; | 86 GURL GenerateDownloadFileUrl(const std::string& resource_id) const; |
86 | 87 |
87 private: | 88 private: |
88 const GURL base_url_; | 89 const GURL base_url_; |
89 const GURL base_download_url_; | 90 const GURL base_download_url_; |
90 | 91 |
91 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. | 92 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. |
92 }; | 93 }; |
93 | 94 |
94 } // namespace google_apis | 95 } // namespace google_apis |
95 | 96 |
96 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ | 97 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ |
OLD | NEW |