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

Unified Diff: chrome/browser/renderer_host/safe_browsing_resource_handler.h

Issue 5874002: Create a ResourceMessageFilter to filter resource related IPCs. This gets ri... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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: chrome/browser/renderer_host/safe_browsing_resource_handler.h
===================================================================
--- chrome/browser/renderer_host/safe_browsing_resource_handler.h (revision 69229)
+++ chrome/browser/renderer_host/safe_browsing_resource_handler.h (working copy)
@@ -11,12 +11,14 @@
#include "base/ref_counted.h"
#include "base/time.h"
#include "base/timer.h"
-#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/renderer_host/resource_handler.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/notification_observer.h"
#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
// malware/phishing blacklists (see SafeBrowsingService for details).
@@ -44,12 +46,11 @@
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,
- ResourceDispatcherHost::Receiver* receiver);
+ ResourceMessageFilter* filter);
// ResourceHandler implementation:
virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);

Powered by Google App Engine
This is Rietveld 408576698