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 CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 GURL GetChildrenUrl(const std::string& resource_id) const; | 61 GURL GetChildrenUrl(const std::string& resource_id) const; |
62 | 62 |
63 // Returns a URL to remove a resource with |child_id| from a directory | 63 // Returns a URL to remove a resource with |child_id| from a directory |
64 // with |folder_id|. | 64 // with |folder_id|. |
65 // Note that we use the name "folder" for the parameter, in order to be | 65 // Note that we use the name "folder" for the parameter, in order to be |
66 // consistent with the drive API document: | 66 // consistent with the drive API document: |
67 // https://developers.google.com/drive/v2/reference/children/delete | 67 // https://developers.google.com/drive/v2/reference/children/delete |
68 GURL GetChildrenUrlForRemoval(const std::string& folder_id, | 68 GURL GetChildrenUrlForRemoval(const std::string& folder_id, |
69 const std::string& child_id) const; | 69 const std::string& child_id) const; |
70 | 70 |
| 71 // Returns a URL to initiate uploading a new file. |
| 72 GURL GetInitiateUploadNewFileUrl() const; |
| 73 |
| 74 // Returns a URL to initiate uploading an existing file specified by |
| 75 // |resource_id|. |
| 76 GURL GetInitiateUploadExistingFileUrl(const std::string& resource_id) const; |
| 77 |
71 private: | 78 private: |
72 const GURL base_url_; | 79 const GURL base_url_; |
73 | 80 |
74 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. | 81 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. |
75 }; | 82 }; |
76 | 83 |
77 } // namespace google_apis | 84 } // namespace google_apis |
78 | 85 |
79 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ | 86 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ |
OLD | NEW |