Index: content/browser/debugger/devtools_http_handler_impl.h |
diff --git a/content/browser/debugger/devtools_http_handler_impl.h b/content/browser/debugger/devtools_http_handler_impl.h |
index 641ec03b1123374d3ab336b729cb01c58101651f..de2597525f96a76fcbc88094f643f04f87638eda 100644 |
--- a/content/browser/debugger/devtools_http_handler_impl.h |
+++ b/content/browser/debugger/devtools_http_handler_impl.h |
@@ -15,6 +15,8 @@ |
#include "content/common/content_export.h" |
#include "content/public/browser/devtools_http_handler.h" |
#include "content/public/browser/devtools_http_handler_delegate.h" |
+#include "content/public/browser/notification_observer.h" |
+#include "content/public/browser/notification_registrar.h" |
#include "net/server/http_server.h" |
namespace base { |
@@ -35,6 +37,7 @@ class RenderViewHost; |
class DevToolsHttpHandlerImpl |
: public DevToolsHttpHandler, |
+ public NotificationObserver, |
public base::RefCountedThreadSafe<DevToolsHttpHandlerImpl>, |
public net::HttpServer::Delegate { |
private: |
@@ -58,6 +61,11 @@ class DevToolsHttpHandlerImpl |
RenderViewHostBinding* binding) OVERRIDE; |
virtual GURL GetFrontendURL(RenderViewHost* render_view_host) OVERRIDE; |
+ // NotificationObserver implementation. |
+ virtual void Observe(int type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details) OVERRIDE; |
+ |
// net::HttpServer::Delegate implementation. |
virtual void OnHttpRequest(int connection_id, |
const net::HttpServerRequestInfo& info) OVERRIDE; |
@@ -121,6 +129,7 @@ class DevToolsHttpHandlerImpl |
scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; |
RenderViewHostBinding* binding_; |
scoped_ptr<RenderViewHostBinding> default_binding_; |
+ NotificationRegistrar registrar_; |
DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
}; |