summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/resource_dispatcher_host_impl.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 06:43:30 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 06:43:30 +0000
commitb765debf3f3395bf7677643e0c315cb778e77567 (patch)
treede18b41e644f31ca4909eb0127546359abddae3d /content/browser/loader/resource_dispatcher_host_impl.cc
parent1f1dde8e92b7be25aa5eec4238b2fa1212b86598 (diff)
downloadchromium_src-b765debf3f3395bf7677643e0c315cb778e77567.zip
chromium_src-b765debf3f3395bf7677643e0c315cb778e77567.tar.gz
chromium_src-b765debf3f3395bf7677643e0c315cb778e77567.tar.bz2
Chrome side of making SharedWorkerRepositoryClient be per RenderFrame instead of RenderView.
This also fixes the TODOs from r241306 in tab_specific_content_settings.cc The RenderView ID is still being sent to the browser because it's used by ResourceRequestInfo::GetAssociatedRenderView. Fixing that will be a large change by itself, so I'll do that in a followup. One minor behavior change is that the per-RenderView limit on how many shared workers can be started is now per-RenderFrame. Given that shared workers will be moved to the renderer process, I'm not too concerned about that. BUG=304341 R=nasko@chromium.org Review URL: https://codereview.chromium.org/109213006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/resource_dispatcher_host_impl.cc')
-rw-r--r--content/browser/loader/resource_dispatcher_host_impl.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 831a368..e860a25 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -282,7 +282,7 @@ void NotifyRedirectOnUI(int render_process_id,
return;
RenderViewHostDelegate* delegate = host->GetDelegate();
- delegate->DidGetRedirectForResourceRequest(*details.get());
+ delegate->DidGetRedirectForResourceRequest(host, *details.get());
}
void NotifyResponseOnUI(int render_process_id,
@@ -779,22 +779,6 @@ void ResourceDispatcherHostImpl::DidFinishLoading(ResourceLoader* loader) {
RemovePendingRequest(info->GetChildID(), info->GetRequestID());
}
-// static
-bool ResourceDispatcherHostImpl::RenderViewForRequest(
- const net::URLRequest* request,
- int* render_process_id,
- int* render_view_id) {
- const ResourceRequestInfoImpl* info =
- ResourceRequestInfoImpl::ForRequest(request);
- if (!info) {
- *render_process_id = -1;
- *render_view_id = -1;
- return false;
- }
-
- return info->GetAssociatedRenderView(render_process_id, render_view_id);
-}
-
void ResourceDispatcherHostImpl::OnInit() {
scheduler_.reset(new ResourceScheduler);
appcache::AppCacheInterceptor::EnsureRegistered();