Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / web_contents.cc
blobaece7c630ada1bd01a2f3830b2c3e60deae81589
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
3 // found in the LICENSE file.
5 #include "content/public/browser/web_contents.h"
7 #include "ipc/ipc_message.h"
9 namespace content {
11 WebContents::CreateParams::CreateParams(BrowserContext* context)
12 : browser_context(context),
13 site_instance(nullptr),
14 opener(nullptr),
15 opener_suppressed(false),
16 routing_id(MSG_ROUTING_NONE),
17 main_frame_routing_id(MSG_ROUTING_NONE),
18 initially_hidden(false),
19 guest_delegate(nullptr),
20 context(nullptr),
21 renderer_initiated_creation(false) {}
23 WebContents::CreateParams::CreateParams(
24 BrowserContext* context, SiteInstance* site)
25 : browser_context(context),
26 site_instance(site),
27 opener(nullptr),
28 opener_suppressed(false),
29 routing_id(MSG_ROUTING_NONE),
30 main_frame_routing_id(MSG_ROUTING_NONE),
31 initially_hidden(false),
32 guest_delegate(nullptr),
33 context(nullptr),
34 renderer_initiated_creation(false) {}
36 WebContents::CreateParams::~CreateParams() {
39 } // namespace content