OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/request_extra_data.h" | 5 #include "content/common/request_extra_data.h" |
6 | 6 |
7 using WebKit::WebReferrerPolicy; | 7 using WebKit::WebReferrerPolicy; |
8 | 8 |
9 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, | 9 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, |
10 bool is_main_frame, | 10 bool is_main_frame, |
11 int64 frame_id, | 11 int64 frame_id, |
12 bool parent_is_main_frame, | 12 bool parent_is_main_frame, |
13 int64 parent_frame_id, | 13 int64 parent_frame_id, |
| 14 bool allow_download, |
14 content::PageTransition transition_type, | 15 content::PageTransition transition_type, |
15 int transferred_request_child_id, | 16 int transferred_request_child_id, |
16 int transferred_request_request_id) | 17 int transferred_request_request_id) |
17 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy), | 18 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy), |
18 is_main_frame_(is_main_frame), | 19 is_main_frame_(is_main_frame), |
19 frame_id_(frame_id), | 20 frame_id_(frame_id), |
20 parent_is_main_frame_(parent_is_main_frame), | 21 parent_is_main_frame_(parent_is_main_frame), |
21 parent_frame_id_(parent_frame_id), | 22 parent_frame_id_(parent_frame_id), |
| 23 allow_download_(allow_download), |
22 transition_type_(transition_type), | 24 transition_type_(transition_type), |
23 transferred_request_child_id_(transferred_request_child_id), | 25 transferred_request_child_id_(transferred_request_child_id), |
24 transferred_request_request_id_(transferred_request_request_id) { | 26 transferred_request_request_id_(transferred_request_request_id) { |
25 } | 27 } |
26 | 28 |
27 RequestExtraData::~RequestExtraData() { | 29 RequestExtraData::~RequestExtraData() { |
28 } | 30 } |
OLD | NEW |