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/public/browser/web_contents.h" | 5 #include "content/public/browser/web_contents.h" |
6 #include "content/public/common/child_process_host.h" | 6 #include "content/public/common/child_process_host.h" |
7 | 7 |
8 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 WebContents::CreateParams::CreateParams(BrowserContext* context) | 12 WebContents::CreateParams::CreateParams(BrowserContext* context) |
13 : browser_context(context), | 13 : CreateParams(context, nullptr) {} |
14 site_instance(nullptr), | |
15 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID), | |
16 opener_render_frame_id(MSG_ROUTING_NONE), | |
17 opener_suppressed(false), | |
18 created_with_opener(false), | |
19 routing_id(MSG_ROUTING_NONE), | |
20 main_frame_routing_id(MSG_ROUTING_NONE), | |
21 initially_hidden(false), | |
22 guest_delegate(nullptr), | |
23 context(nullptr), | |
24 renderer_initiated_creation(false) {} | |
25 | 14 |
26 WebContents::CreateParams::CreateParams( | 15 WebContents::CreateParams::CreateParams(BrowserContext* context, |
27 BrowserContext* context, SiteInstance* site) | 16 SiteInstance* site) |
28 : browser_context(context), | 17 : browser_context(context), |
29 site_instance(site), | 18 site_instance(site), |
30 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID), | 19 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID), |
31 opener_render_frame_id(MSG_ROUTING_NONE), | 20 opener_render_frame_id(MSG_ROUTING_NONE), |
32 opener_suppressed(false), | 21 opener_suppressed(false), |
33 created_with_opener(false), | 22 created_with_opener(false), |
34 routing_id(MSG_ROUTING_NONE), | 23 routing_id(MSG_ROUTING_NONE), |
35 main_frame_routing_id(MSG_ROUTING_NONE), | 24 main_frame_routing_id(MSG_ROUTING_NONE), |
| 25 main_frame_widget_routing_id(MSG_ROUTING_NONE), |
36 initially_hidden(false), | 26 initially_hidden(false), |
37 guest_delegate(nullptr), | 27 guest_delegate(nullptr), |
38 context(nullptr), | 28 context(nullptr), |
39 renderer_initiated_creation(false) {} | 29 renderer_initiated_creation(false) {} |
40 | 30 |
41 WebContents::CreateParams::~CreateParams() { | 31 WebContents::CreateParams::~CreateParams() { |
42 } | 32 } |
43 | 33 |
44 } // namespace content | 34 } // namespace content |
OLD | NEW |