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 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const std::string& resource_id, | 100 const std::string& resource_id, |
101 const EntryActionCallback& callback) OVERRIDE; | 101 const EntryActionCallback& callback) OVERRIDE; |
102 virtual void RemoveResourceFromDirectory( | 102 virtual void RemoveResourceFromDirectory( |
103 const std::string& parent_resource_id, | 103 const std::string& parent_resource_id, |
104 const std::string& resource_id, | 104 const std::string& resource_id, |
105 const EntryActionCallback& callback) OVERRIDE; | 105 const EntryActionCallback& callback) OVERRIDE; |
106 virtual void AddNewDirectory( | 106 virtual void AddNewDirectory( |
107 const std::string& parent_resource_id, | 107 const std::string& parent_resource_id, |
108 const std::string& directory_name, | 108 const std::string& directory_name, |
109 const GetResourceEntryCallback& callback) OVERRIDE; | 109 const GetResourceEntryCallback& callback) OVERRIDE; |
110 virtual void InitiateUpload( | 110 virtual void InitiateUploadNewFile( |
111 const InitiateUploadParams& params, | 111 const FilePath& drive_file_path, |
| 112 const std::string& content_type, |
| 113 int64 content_length, |
| 114 const GURL& parent_upload_url, |
| 115 const std::string& title, |
| 116 const InitiateUploadCallback& callback) OVERRIDE; |
| 117 virtual void InitiateUploadExistingFile( |
| 118 const FilePath& drive_file_path, |
| 119 const std::string& content_type, |
| 120 int64 content_length, |
| 121 const GURL& upload_url, |
| 122 const std::string& etag, |
112 const InitiateUploadCallback& callback) OVERRIDE; | 123 const InitiateUploadCallback& callback) OVERRIDE; |
113 virtual void ResumeUpload( | 124 virtual void ResumeUpload( |
114 const ResumeUploadParams& params, | 125 const ResumeUploadParams& params, |
115 const UploadRangeCallback& callback) OVERRIDE; | 126 const UploadRangeCallback& callback) OVERRIDE; |
116 virtual void GetUploadStatus( | 127 virtual void GetUploadStatus( |
117 UploadMode upload_mode, | 128 UploadMode upload_mode, |
118 const base::FilePath& drive_file_path, | 129 const base::FilePath& drive_file_path, |
119 const GURL& upload_url, | 130 const GURL& upload_url, |
120 int64 content_length, | 131 int64 content_length, |
121 const UploadRangeCallback& callback) OVERRIDE; | 132 const UploadRangeCallback& callback) OVERRIDE; |
(...skipping 19 matching lines...) Expand all Loading... |
141 // reference, as they may outlive this object. | 152 // reference, as they may outlive this object. |
142 GDataWapiUrlGenerator url_generator_; | 153 GDataWapiUrlGenerator url_generator_; |
143 const std::string custom_user_agent_; | 154 const std::string custom_user_agent_; |
144 | 155 |
145 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 156 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
146 }; | 157 }; |
147 | 158 |
148 } // namespace google_apis | 159 } // namespace google_apis |
149 | 160 |
150 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 161 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
OLD | NEW |