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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2197763002: Move LoaderIOThreadNotifier out of resource_dispatcher_host_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move definition Created 4 years, 5 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/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index bc591bd3faf1baf67ab328962689cee757874115..981c71ba454f337c573f6c9b64805d7934a13ce5 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -493,19 +493,6 @@ void NotifyForEachFrameFromUI(
} // namespace
-LoaderIOThreadNotifier::LoaderIOThreadNotifier(WebContents* web_contents)
- : WebContentsObserver(web_contents) {}
-
-LoaderIOThreadNotifier::~LoaderIOThreadNotifier() {}
-
-void LoaderIOThreadNotifier::RenderFrameDeleted(
- RenderFrameHost* render_frame_host) {
- NotifyForRouteFromUI(
- static_cast<RenderFrameHostImpl*>(render_frame_host)
- ->GetGlobalFrameRoutingId(),
- base::Bind(&ResourceDispatcherHostImpl::OnRenderFrameDeleted));
-}
-
// static
ResourceDispatcherHost* ResourceDispatcherHost::Get() {
return g_resource_dispatcher_host;
@@ -1826,11 +1813,6 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
false); // initiated_in_secure_context
}
-void ResourceDispatcherHostImpl::OnRenderFrameDeleted(
- const GlobalFrameRoutingId& global_routing_id) {
- CancelRequestsForRoute(global_routing_id);
-}
-
void ResourceDispatcherHostImpl::OnRenderViewHostCreated(int child_id,
int route_id) {
scheduler_->OnClientCreated(child_id, route_id);
@@ -2294,6 +2276,11 @@ void ResourceDispatcherHostImpl::SetLoaderDelegate(
loader_delegate_ = loader_delegate;
}
+void ResourceDispatcherHostImpl::OnRenderFrameDeleted(
+ const GlobalFrameRoutingId& global_routing_id) {
+ CancelRequestsForRoute(global_routing_id);
+}
+
// static
int ResourceDispatcherHostImpl::CalculateApproximateMemoryCost(
net::URLRequest* request) {
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698