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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.cc
diff --git a/content/public/browser/web_contents.cc b/content/public/browser/web_contents.cc
index a0c8a4d2190e6c8d122eb2202e1e9a59276735ef..887f242fe6826f346e3a097ba7be59f16409296b 100644
--- a/content/public/browser/web_contents.cc
+++ b/content/public/browser/web_contents.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "content/public/browser/web_contents.h"
+#include "content/public/common/child_process_host.h"
#include "ipc/ipc_message.h"
@@ -11,7 +12,8 @@ namespace content {
WebContents::CreateParams::CreateParams(BrowserContext* context)
: browser_context(context),
site_instance(nullptr),
- opener(nullptr),
+ opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID),
+ opener_render_frame_id(MSG_ROUTING_NONE),
opener_suppressed(false),
created_with_opener(false),
routing_id(MSG_ROUTING_NONE),
@@ -25,7 +27,8 @@ WebContents::CreateParams::CreateParams(
BrowserContext* context, SiteInstance* site)
: browser_context(context),
site_instance(site),
- opener(nullptr),
+ opener_render_process_id(content::ChildProcessHost::kInvalidUniqueID),
+ opener_render_frame_id(MSG_ROUTING_NONE),
opener_suppressed(false),
created_with_opener(false),
routing_id(MSG_ROUTING_NONE),
« 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