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

Side by Side Diff: content/public/browser/download_url_parameters.h

Issue 2498193003: [WIP not ready for review] ServiceWorker Download support.
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/browser/download_url_parameters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // These will be -1 if the request is not associated with a frame. See 214 // These will be -1 if the request is not associated with a frame. See
215 // the constructors for more. 215 // the constructors for more.
216 int render_process_host_id() const { return render_process_host_id_; } 216 int render_process_host_id() const { return render_process_host_id_; }
217 int render_view_host_routing_id() const { 217 int render_view_host_routing_id() const {
218 return render_view_host_routing_id_; 218 return render_view_host_routing_id_;
219 } 219 }
220 int render_frame_host_routing_id() const { 220 int render_frame_host_routing_id() const {
221 return render_frame_host_routing_id_; 221 return render_frame_host_routing_id_;
222 } 222 }
223 223
224 void set_service_worker_provider_id(int id) {
225 service_worker_provider_id_ = id;
226 }
227 int service_worker_provider_id() const { return service_worker_provider_id_; }
228
224 const RequestHeadersType& request_headers() const { return request_headers_; } 229 const RequestHeadersType& request_headers() const { return request_headers_; }
225 net::URLRequestContextGetter* url_request_context_getter() { 230 net::URLRequestContextGetter* url_request_context_getter() {
226 return url_request_context_getter_.get(); 231 return url_request_context_getter_.get();
227 } 232 }
228 const base::FilePath& file_path() const { return save_info_.file_path; } 233 const base::FilePath& file_path() const { return save_info_.file_path; }
229 const base::string16& suggested_name() const { 234 const base::string16& suggested_name() const {
230 return save_info_.suggested_name; 235 return save_info_.suggested_name;
231 } 236 }
232 int64_t offset() const { return save_info_.offset; } 237 int64_t offset() const { return save_info_.offset; }
233 const std::string& hash_of_partial_file() const { 238 const std::string& hash_of_partial_file() const {
(...skipping 20 matching lines...) Expand all
254 std::string etag_; 259 std::string etag_;
255 std::string method_; 260 std::string method_;
256 std::string post_body_; 261 std::string post_body_;
257 int64_t post_id_; 262 int64_t post_id_;
258 bool prefer_cache_; 263 bool prefer_cache_;
259 Referrer referrer_; 264 Referrer referrer_;
260 std::string referrer_encoding_; 265 std::string referrer_encoding_;
261 int render_process_host_id_; 266 int render_process_host_id_;
262 int render_view_host_routing_id_; 267 int render_view_host_routing_id_;
263 int render_frame_host_routing_id_; 268 int render_frame_host_routing_id_;
269 int service_worker_provider_id_;
264 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 270 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
265 DownloadSaveInfo save_info_; 271 DownloadSaveInfo save_info_;
266 GURL url_; 272 GURL url_;
267 bool do_not_prompt_for_login_; 273 bool do_not_prompt_for_login_;
268 std::unique_ptr<storage::BlobDataHandle> blob_data_handle_; 274 std::unique_ptr<storage::BlobDataHandle> blob_data_handle_;
269 275
270 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); 276 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters);
271 }; 277 };
272 278
273 } // namespace content 279 } // namespace content
274 280
275 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ 281 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/browser/download_url_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698