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

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: Second round of feedback 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/public/common/child_process_host.h"
6 7
7 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 WebContents::CreateParams::CreateParams(BrowserContext* context) 12 WebContents::CreateParams::CreateParams(BrowserContext* context)
12 : browser_context(context), 13 : browser_context(context),
13 site_instance(nullptr), 14 site_instance(nullptr),
14 opener(nullptr), 15 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID),
16 opener_render_frame_id(MSG_ROUTING_NONE),
15 opener_suppressed(false), 17 opener_suppressed(false),
16 created_with_opener(false), 18 created_with_opener(false),
17 routing_id(MSG_ROUTING_NONE), 19 routing_id(MSG_ROUTING_NONE),
18 main_frame_routing_id(MSG_ROUTING_NONE), 20 main_frame_routing_id(MSG_ROUTING_NONE),
19 initially_hidden(false), 21 initially_hidden(false),
20 guest_delegate(nullptr), 22 guest_delegate(nullptr),
21 context(nullptr), 23 context(nullptr),
22 renderer_initiated_creation(false) {} 24 renderer_initiated_creation(false) {}
23 25
24 WebContents::CreateParams::CreateParams( 26 WebContents::CreateParams::CreateParams(
25 BrowserContext* context, SiteInstance* site) 27 BrowserContext* context, SiteInstance* site)
26 : browser_context(context), 28 : browser_context(context),
27 site_instance(site), 29 site_instance(site),
28 opener(nullptr), 30 opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID),
31 opener_render_frame_id(MSG_ROUTING_NONE),
29 opener_suppressed(false), 32 opener_suppressed(false),
30 created_with_opener(false), 33 created_with_opener(false),
31 routing_id(MSG_ROUTING_NONE), 34 routing_id(MSG_ROUTING_NONE),
32 main_frame_routing_id(MSG_ROUTING_NONE), 35 main_frame_routing_id(MSG_ROUTING_NONE),
33 initially_hidden(false), 36 initially_hidden(false),
34 guest_delegate(nullptr), 37 guest_delegate(nullptr),
35 context(nullptr), 38 context(nullptr),
36 renderer_initiated_creation(false) {} 39 renderer_initiated_creation(false) {}
37 40
38 WebContents::CreateParams::~CreateParams() { 41 WebContents::CreateParams::~CreateParams() {
39 } 42 }
40 43
41 } // namespace content 44 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698