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 #include "content/common/service_worker/service_worker_types.h" |
| 7 #include "ipc/ipc_message.h" |
6 | 8 |
7 using blink::WebString; | 9 using blink::WebString; |
8 | 10 |
9 namespace content { | 11 namespace content { |
10 | 12 |
| 13 RequestExtraData::RequestExtraData() |
| 14 : webkit_glue::WebURLRequestExtraDataImpl(blink::WebString(), |
| 15 false), |
| 16 visibility_state_(blink::WebPageVisibilityStateVisible), |
| 17 render_frame_id_(MSG_ROUTING_NONE), |
| 18 is_main_frame_(false), |
| 19 parent_is_main_frame_(false), |
| 20 parent_render_frame_id_(-1), |
| 21 allow_download_(true), |
| 22 transition_type_(PAGE_TRANSITION_LINK), |
| 23 should_replace_current_entry_(false), |
| 24 transferred_request_child_id_(-1), |
| 25 transferred_request_request_id_(-1), |
| 26 service_worker_provider_id_(kInvalidServiceWorkerProviderId) { |
| 27 } |
| 28 |
| 29 RequestExtraData::RequestExtraData(int provider_id) |
| 30 : webkit_glue::WebURLRequestExtraDataImpl(blink::WebString(), |
| 31 false), |
| 32 visibility_state_(blink::WebPageVisibilityStateVisible), |
| 33 render_frame_id_(MSG_ROUTING_NONE), |
| 34 is_main_frame_(false), |
| 35 parent_is_main_frame_(false), |
| 36 parent_render_frame_id_(-1), |
| 37 allow_download_(true), |
| 38 transition_type_(PAGE_TRANSITION_LINK), |
| 39 should_replace_current_entry_(false), |
| 40 transferred_request_child_id_(-1), |
| 41 transferred_request_request_id_(-1), |
| 42 service_worker_provider_id_(provider_id) { |
| 43 } |
| 44 |
11 RequestExtraData::RequestExtraData( | 45 RequestExtraData::RequestExtraData( |
12 blink::WebPageVisibilityState visibility_state, | 46 blink::WebPageVisibilityState visibility_state, |
13 const WebString& custom_user_agent, | 47 const WebString& custom_user_agent, |
14 bool was_after_preconnect_request, | 48 bool was_after_preconnect_request, |
15 int render_frame_id, | 49 int render_frame_id, |
16 bool is_main_frame, | 50 bool is_main_frame, |
17 const GURL& frame_origin, | 51 const GURL& frame_origin, |
18 bool parent_is_main_frame, | 52 bool parent_is_main_frame, |
19 int parent_render_frame_id, | 53 int parent_render_frame_id, |
20 bool allow_download, | 54 bool allow_download, |
(...skipping 15 matching lines...) Expand all Loading... |
36 should_replace_current_entry_(should_replace_current_entry), | 70 should_replace_current_entry_(should_replace_current_entry), |
37 transferred_request_child_id_(transferred_request_child_id), | 71 transferred_request_child_id_(transferred_request_child_id), |
38 transferred_request_request_id_(transferred_request_request_id), | 72 transferred_request_request_id_(transferred_request_request_id), |
39 service_worker_provider_id_(service_worker_provider_id) { | 73 service_worker_provider_id_(service_worker_provider_id) { |
40 } | 74 } |
41 | 75 |
42 RequestExtraData::~RequestExtraData() { | 76 RequestExtraData::~RequestExtraData() { |
43 } | 77 } |
44 | 78 |
45 } // namespace content | 79 } // namespace content |
OLD | NEW |