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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 12 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 88f58a782fd7544ae316343b06dc0b6dd50546c2..e9f8605666ff332b44940f4745667e35867c4c67 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -413,6 +413,7 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context)
frame_tree_.SetFrameRemoveListener(
base::Bind(&WebContentsImpl::OnFrameRemoved,
base::Unretained(this)));
+ loader_io_thread_notifier_.reset(new LoaderIOThreadNotifierImpl(this));
media_web_contents_observer_.reset(new MediaWebContentsObserver(this));
wake_lock_service_context_.reset(new WakeLockServiceContext(this));
}
@@ -1817,7 +1818,9 @@ void WebContentsImpl::CreateNewWindow(
// delete the RenderView that had already been created.
Send(new ViewMsg_Close(route_id));
}
- GetRenderViewHost()->GetProcess()->ResumeRequestsForView(route_id);
+ LoaderIOThreadNotifierImpl::ResumeBlockedRequestsForFrameInternal(
Randy Smith (Not in Mondays) 2016/01/06 21:56:30 I presume that it's safe to just target the frame
Randy Smith (Not in Mondays) 2016/01/06 21:56:30 Help me understand the context in which this code
Charlie Harrison 2016/01/07 22:47:06 It's rather confusing :/ but I believe what is hap
Charlie Harrison 2016/01/07 22:47:06 Done.
+ GlobalFrameRoutingId(GetRenderViewHost()->GetProcess()->GetID(),
nasko 2016/01/07 00:43:09 Why are you getting the process id from the Render
Charlie Harrison 2016/01/07 22:47:06 Good catch. Actually, I think we should be grabbin
+ main_frame_route_id));
return;
}

Powered by Google App Engine
This is Rietveld 408576698