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

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

Issue 6055002: Create a message filter for message port messages. This allows a nice cleanu... (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 69724)
+++ chrome/browser/renderer_host/safe_browsing_resource_handler.h (working copy)
@@ -13,8 +13,6 @@
#include "base/timer.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;
@@ -41,8 +39,7 @@
// If on the other hand the URL was decided to be safe, the request is
// resumed.
class SafeBrowsingResourceHandler : public ResourceHandler,
- public SafeBrowsingService::Client,
- public NotificationObserver {
+ public SafeBrowsingService::Client {
public:
SafeBrowsingResourceHandler(ResourceHandler* handler,
int render_process_host_id,
@@ -74,11 +71,6 @@
// the user has decided to proceed with the current request, or go back.
virtual void OnBlockingPageComplete(bool proceed);
- // NotificationObserver interface.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
private:
// Describes what phase of the check a handler is in.
enum State {
@@ -145,7 +137,6 @@
int deferred_request_id_;
scoped_refptr<ResourceResponse> deferred_redirect_response_;
- NotificationRegistrar registrar_;
scoped_refptr<ResourceHandler> next_handler_;
int render_process_host_id_;
int render_view_id_;

Powered by Google App Engine
This is Rietveld 408576698