summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.cc9
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.h3
-rw-r--r--chrome/browser/renderer_host/safe_browsing_resource_handler.cc6
-rw-r--r--chrome/browser/renderer_host/safe_browsing_resource_handler.h5
4 files changed, 12 insertions, 11 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc
index d552775..d6de60b 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc
@@ -465,7 +465,7 @@ void ResourceDispatcherHost::BeginRequest(
// Insert safe browsing at the front of the chain, so it gets to decide
// on policies first.
if (safe_browsing_->enabled()) {
- handler = CreateSafeBrowsingResourceHandler(handler, route_id,
+ handler = CreateSafeBrowsingResourceHandler(handler, child_id, route_id,
request_data.resource_type);
}
@@ -603,9 +603,10 @@ void ResourceDispatcherHost::OnFollowRedirect(
}
ResourceHandler* ResourceDispatcherHost::CreateSafeBrowsingResourceHandler(
- ResourceHandler* handler, int route_id, ResourceType::Type resource_type) {
+ ResourceHandler* handler, int child_id, int route_id,
+ ResourceType::Type resource_type) {
return new SafeBrowsingResourceHandler(
- handler, route_id, resource_type, safe_browsing_, this, filter_);
+ handler, child_id, route_id, resource_type, safe_browsing_, this);
}
ResourceDispatcherHostRequestInfo*
@@ -690,7 +691,7 @@ void ResourceDispatcherHost::BeginDownload(
save_info));
if (safe_browsing_->enabled()) {
- handler = CreateSafeBrowsingResourceHandler(handler, route_id,
+ handler = CreateSafeBrowsingResourceHandler(handler, child_id, route_id,
ResourceType::MAIN_FRAME);
}
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.h b/chrome/browser/renderer_host/resource_dispatcher_host.h
index 81935b5..9d1924d 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.h
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.h
@@ -397,7 +397,8 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
void OnReleaseDownloadedFile(int request_id);
ResourceHandler* CreateSafeBrowsingResourceHandler(
- ResourceHandler* handler, int route_id, ResourceType::Type resource_type);
+ ResourceHandler* handler, int child_id, int route_id,
+ ResourceType::Type resource_type);
// Creates ResourceDispatcherHostRequestInfo for a browser-initiated request
// (a download or a page save). |download| should be true if the request
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_handler.cc b/chrome/browser/renderer_host/safe_browsing_resource_handler.cc
index fbb1a72e..d73f24b0 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_handler.cc
+++ b/chrome/browser/renderer_host/safe_browsing_resource_handler.cc
@@ -24,16 +24,16 @@ static const int kCheckUrlTimeoutMs = 5000;
SafeBrowsingResourceHandler::SafeBrowsingResourceHandler(
ResourceHandler* handler,
+ int render_process_host_id,
int render_view_id,
ResourceType::Type resource_type,
SafeBrowsingService* safe_browsing,
- ResourceDispatcherHost* resource_dispatcher_host,
- ResourceMessageFilter* filter)
+ ResourceDispatcherHost* resource_dispatcher_host)
: state_(STATE_NONE),
defer_state_(DEFERRED_NONE),
deferred_request_id_(-1),
next_handler_(handler),
- render_process_host_id_(filter->child_id()),
+ render_process_host_id_(render_process_host_id),
render_view_id_(render_view_id),
safe_browsing_(safe_browsing),
rdh_(resource_dispatcher_host),
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_handler.h b/chrome/browser/renderer_host/safe_browsing_resource_handler.h
index f2a61fd..e679fdc 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_handler.h
+++ b/chrome/browser/renderer_host/safe_browsing_resource_handler.h
@@ -17,7 +17,6 @@
#include "chrome/common/notification_registrar.h"
class ResourceDispatcherHost;
-class ResourceMessageFilter;
// SafeBrowsingResourceHandler checks that URLs are "safe" before navigating
// to them. To be considered "safe", a URL must not appear in the
@@ -46,11 +45,11 @@ class SafeBrowsingResourceHandler : public ResourceHandler,
public NotificationObserver {
public:
SafeBrowsingResourceHandler(ResourceHandler* handler,
+ int render_process_host_id,
int render_view_id,
ResourceType::Type resource_type,
SafeBrowsingService* safe_browsing,
- ResourceDispatcherHost* resource_dispatcher_host,
- ResourceMessageFilter* filter);
+ ResourceDispatcherHost* resource_dispatcher_host);
// ResourceHandler implementation:
virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);