Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: google_apis/drive/drive_api_url_generator.h

Issue 139153006: drive: Add metadata parameters to InitiateUpload* methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests_unittest.cc ('k') | google_apis/drive/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698