Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: content/public/browser/web_contents.cc

Issue 1086283002: Track frame openers in FrameTreeNodes instead of WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup in WebContentsImpl Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6
7 #include "ipc/ipc_message.h" 7 #include "ipc/ipc_message.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 WebContents::CreateParams::CreateParams(BrowserContext* context) 11 WebContents::CreateParams::CreateParams(BrowserContext* context)
12 : browser_context(context), 12 : browser_context(context),
13 site_instance(nullptr), 13 site_instance(nullptr),
14 opener(nullptr), 14 opener(nullptr),
15 opener_render_frame_id(MSG_ROUTING_NONE),
15 opener_suppressed(false), 16 opener_suppressed(false),
16 created_with_opener(false), 17 created_with_opener(false),
17 routing_id(MSG_ROUTING_NONE), 18 routing_id(MSG_ROUTING_NONE),
18 main_frame_routing_id(MSG_ROUTING_NONE), 19 main_frame_routing_id(MSG_ROUTING_NONE),
19 initially_hidden(false), 20 initially_hidden(false),
20 guest_delegate(nullptr), 21 guest_delegate(nullptr),
21 context(nullptr), 22 context(nullptr),
22 renderer_initiated_creation(false) {} 23 renderer_initiated_creation(false) {}
23 24
24 WebContents::CreateParams::CreateParams( 25 WebContents::CreateParams::CreateParams(
25 BrowserContext* context, SiteInstance* site) 26 BrowserContext* context, SiteInstance* site)
26 : browser_context(context), 27 : browser_context(context),
27 site_instance(site), 28 site_instance(site),
28 opener(nullptr), 29 opener(nullptr),
30 opener_render_frame_id(MSG_ROUTING_NONE),
29 opener_suppressed(false), 31 opener_suppressed(false),
30 created_with_opener(false), 32 created_with_opener(false),
31 routing_id(MSG_ROUTING_NONE), 33 routing_id(MSG_ROUTING_NONE),
32 main_frame_routing_id(MSG_ROUTING_NONE), 34 main_frame_routing_id(MSG_ROUTING_NONE),
33 initially_hidden(false), 35 initially_hidden(false),
34 guest_delegate(nullptr), 36 guest_delegate(nullptr),
35 context(nullptr), 37 context(nullptr),
36 renderer_initiated_creation(false) {} 38 renderer_initiated_creation(false) {}
37 39
38 WebContents::CreateParams::~CreateParams() { 40 WebContents::CreateParams::~CreateParams() {
39 } 41 }
40 42
41 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698