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 #include "content/child/request_extra_data.h" | 5 #include "content/child/request_extra_data.h" |
6 | 6 |
7 using blink::WebReferrerPolicy; | 7 using blink::WebReferrerPolicy; |
8 using blink::WebString; | 8 using blink::WebString; |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, | 12 RequestExtraData::RequestExtraData( |
13 const WebString& custom_user_agent, | 13 WebReferrerPolicy referrer_policy, |
14 bool was_after_preconnect_request, | 14 blink::WebPageVisibilityState visibility_state, |
15 int render_frame_id, | 15 const WebString& custom_user_agent, |
16 bool is_main_frame, | 16 bool was_after_preconnect_request, |
17 int64 frame_id, | 17 int render_frame_id, |
18 const GURL& frame_origin, | 18 bool is_main_frame, |
19 bool parent_is_main_frame, | 19 int64 frame_id, |
20 int64 parent_frame_id, | 20 const GURL& frame_origin, |
21 bool allow_download, | 21 bool parent_is_main_frame, |
22 PageTransition transition_type, | 22 int64 parent_frame_id, |
23 bool should_replace_current_entry, | 23 bool allow_download, |
24 int transferred_request_child_id, | 24 PageTransition transition_type, |
25 int transferred_request_request_id) | 25 bool should_replace_current_entry, |
| 26 int transferred_request_child_id, |
| 27 int transferred_request_request_id) |
26 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, | 28 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, |
27 custom_user_agent, | 29 custom_user_agent, |
28 was_after_preconnect_request), | 30 was_after_preconnect_request), |
| 31 visibility_state_(visibility_state), |
29 render_frame_id_(render_frame_id), | 32 render_frame_id_(render_frame_id), |
30 is_main_frame_(is_main_frame), | 33 is_main_frame_(is_main_frame), |
31 frame_id_(frame_id), | 34 frame_id_(frame_id), |
32 frame_origin_(frame_origin), | 35 frame_origin_(frame_origin), |
33 parent_is_main_frame_(parent_is_main_frame), | 36 parent_is_main_frame_(parent_is_main_frame), |
34 parent_frame_id_(parent_frame_id), | 37 parent_frame_id_(parent_frame_id), |
35 allow_download_(allow_download), | 38 allow_download_(allow_download), |
36 transition_type_(transition_type), | 39 transition_type_(transition_type), |
37 should_replace_current_entry_(should_replace_current_entry), | 40 should_replace_current_entry_(should_replace_current_entry), |
38 transferred_request_child_id_(transferred_request_child_id), | 41 transferred_request_child_id_(transferred_request_child_id), |
39 transferred_request_request_id_(transferred_request_request_id) { | 42 transferred_request_request_id_(transferred_request_request_id) { |
40 } | 43 } |
41 | 44 |
42 RequestExtraData::~RequestExtraData() { | 45 RequestExtraData::~RequestExtraData() { |
43 } | 46 } |
44 | 47 |
45 } // namespace content | 48 } // namespace content |
OLD | NEW |