OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/child/request_info.h" | 5 #include "content/child/request_info.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 RequestInfo::RequestInfo() | 9 RequestInfo::RequestInfo() |
10 : referrer_policy(blink::WebReferrerPolicyDefault), | 10 : referrer_policy(blink::WebReferrerPolicyDefault), |
11 load_flags(0), | 11 load_flags(0), |
12 requestor_pid(0), | 12 requestor_pid(0), |
13 request_type(RESOURCE_TYPE_MAIN_FRAME), | 13 request_type(RESOURCE_TYPE_MAIN_FRAME), |
14 fetch_request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED), | 14 fetch_request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED), |
15 fetch_frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE), | 15 fetch_frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE), |
16 priority(net::LOW), | 16 priority(net::LOW), |
17 request_context(0), | 17 request_context(0), |
18 appcache_host_id(0), | 18 appcache_host_id(0), |
19 routing_id(0), | 19 routing_id(0), |
20 download_to_file(false), | 20 download_to_file(false), |
21 has_user_gesture(false), | 21 has_user_gesture(false), |
22 skip_service_worker(false), | 22 skip_service_worker(false), |
23 fetch_request_mode(FETCH_REQUEST_MODE_NO_CORS), | 23 fetch_request_mode(FETCH_REQUEST_MODE_NO_CORS), |
24 fetch_credentials_mode(FETCH_CREDENTIALS_MODE_OMIT), | 24 fetch_credentials_mode(FETCH_CREDENTIALS_MODE_OMIT), |
25 enable_load_timing(false), | 25 enable_load_timing(false), |
| 26 enable_upload_progress(false), |
26 extra_data(NULL) { | 27 extra_data(NULL) { |
27 } | 28 } |
28 | 29 |
29 RequestInfo::~RequestInfo() {} | 30 RequestInfo::~RequestInfo() {} |
30 | 31 |
31 } // namespace content | 32 } // namespace content |
OLD | NEW |