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

Unified Diff: extensions/browser/app_window/app_window_contents.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: just comments / minor restructuring (trybots previous) Created 5 years 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: extensions/browser/app_window/app_window_contents.cc
diff --git a/extensions/browser/app_window/app_window_contents.cc b/extensions/browser/app_window/app_window_contents.cc
index 03629988e967409ab66c987eee21555072a5ffbb..c7f2f9636ea3f0fda65266fda45999768a6d98f7 100644
--- a/extensions/browser/app_window/app_window_contents.cc
+++ b/extensions/browser/app_window/app_window_contents.cc
@@ -93,10 +93,9 @@ void AppWindowContentsImpl::OnWindowReady() {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
base::Bind(
- &content::ResourceDispatcherHost::ResumeBlockedRequestsForRoute,
+ &content::ResourceDispatcherHost::ResumeBlockedRequestsForFrame,
base::Unretained(content::ResourceDispatcherHost::Get()),
- frame->GetProcess()->GetID(),
- frame->GetRenderViewHost()->GetRoutingID()));
+ frame->GetProcess()->GetID(), frame->GetRoutingID()));
}
}
@@ -136,14 +135,11 @@ void AppWindowContentsImpl::SuspendRenderFrameHost(
if (is_window_ready_)
return;
is_blocking_requests_ = true;
- // The ResourceDispatcherHost only accepts RenderViewHost child ids.
- // TODO(devlin): This will need to change for site isolation.
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute,
+ base::Bind(&content::ResourceDispatcherHost::BlockRequestsForFrame,
base::Unretained(content::ResourceDispatcherHost::Get()),
- rfh->GetProcess()->GetID(),
- rfh->GetRenderViewHost()->GetRoutingID()));
+ rfh->GetProcess()->GetID(), rfh->GetRoutingID()));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698