Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / web_contents.cc
blob887f242fe6826f346e3a097ba7be59f16409296b
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"
6 #include "content/public/common/child_process_host.h"
8 #include "ipc/ipc_message.h"
10 namespace content {
12 WebContents::CreateParams::CreateParams(BrowserContext* context)
13 : browser_context(context),
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) {}
26 WebContents::CreateParams::CreateParams(
27 BrowserContext* context, SiteInstance* site)
28 : browser_context(context),
29 site_instance(site),
30 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID),
31 opener_render_frame_id(MSG_ROUTING_NONE),
32 opener_suppressed(false),
33 created_with_opener(false),
34 routing_id(MSG_ROUTING_NONE),
35 main_frame_routing_id(MSG_ROUTING_NONE),
36 initially_hidden(false),
37 guest_delegate(nullptr),
38 context(nullptr),
39 renderer_initiated_creation(false) {}
41 WebContents::CreateParams::~CreateParams() {
44 } // namespace content