web_contents.cc revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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.
4
5#include "content/public/browser/web_contents.h"
6
7#include "ipc/ipc_message.h"
8
9namespace content {
10
11WebContents::CreateParams::CreateParams(BrowserContext* context)
12    : browser_context(context),
13      site_instance(NULL),
14      opener(NULL),
15      opener_suppressed(false),
16      routing_id(MSG_ROUTING_NONE),
17      main_frame_routing_id(MSG_ROUTING_NONE),
18      initially_hidden(false),
19      guest_instance_id(0),
20      context(NULL) {}
21
22WebContents::CreateParams::CreateParams(
23    BrowserContext* context, SiteInstance* site)
24    : browser_context(context),
25      site_instance(site),
26      opener(NULL),
27      opener_suppressed(false),
28      routing_id(MSG_ROUTING_NONE),
29      main_frame_routing_id(MSG_ROUTING_NONE),
30      initially_hidden(false),
31      guest_instance_id(0),
32      context(NULL) {}
33
34WebContents::CreateParams::~CreateParams() {
35}
36
37}  // namespace content
38