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 : CreateParams(context, nullptr) {} | 13 : CreateParams(context, nullptr) {} |
14 | 14 |
15 WebContents::CreateParams::CreateParams(BrowserContext* context, | 15 WebContents::CreateParams::CreateParams(BrowserContext* context, |
16 SiteInstance* site) | 16 SiteInstance* site) |
17 : browser_context(context), | 17 : browser_context(context), |
18 site_instance(site), | 18 site_instance(site), |
19 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID), | 19 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID), |
20 opener_render_frame_id(MSG_ROUTING_NONE), | 20 opener_render_frame_id(MSG_ROUTING_NONE), |
21 opener_suppressed(false), | 21 opener_suppressed(false), |
22 created_with_opener(false), | 22 created_with_opener(false), |
23 routing_id(MSG_ROUTING_NONE), | 23 routing_id(MSG_ROUTING_NONE), |
24 main_frame_routing_id(MSG_ROUTING_NONE), | 24 main_frame_routing_id(MSG_ROUTING_NONE), |
25 main_frame_widget_routing_id(MSG_ROUTING_NONE), | 25 main_frame_widget_routing_id(MSG_ROUTING_NONE), |
26 initially_hidden(false), | 26 initially_hidden(false), |
27 guest_delegate(nullptr), | 27 guest_delegate(nullptr), |
| 28 #if defined(MOJO_SHELL_CLIENT) |
| 29 mus_window(nullptr), |
| 30 #endif |
28 context(nullptr), | 31 context(nullptr), |
29 renderer_initiated_creation(false) {} | 32 renderer_initiated_creation(false) { |
| 33 } |
30 | 34 |
31 WebContents::CreateParams::~CreateParams() { | 35 WebContents::CreateParams::~CreateParams() { |
32 } | 36 } |
33 | 37 |
34 } // namespace content | 38 } // namespace content |
OLD | NEW |