summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_network_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/chrome_network_delegate.h')
-rw-r--r--chrome/browser/net/chrome_network_delegate.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index 06c7c93..fbac036 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -7,25 +7,26 @@
#pragma once
#include "base/basictypes.h"
-#include "net/http/http_network_delegate.h"
+#include "net/base/network_delegate.h"
+
+class ExtensionIOEventRouter;
// ChromeNetworkDelegate is the central point from within the chrome code to
// add hooks into the network stack.
-class ChromeNetworkDelegate : public net::HttpNetworkDelegate {
+class ChromeNetworkDelegate : public net::NetworkDelegate {
public:
- ChromeNetworkDelegate();
+ explicit ChromeNetworkDelegate(
+ ExtensionIOEventRouter* extension_io_event_router);
~ChromeNetworkDelegate();
- // net::HttpNetworkDelegate methods:
+ private:
+ // NetworkDelegate methods:
virtual void OnBeforeURLRequest(net::URLRequest* request);
virtual void OnSendHttpRequest(net::HttpRequestHeaders* headers);
virtual void OnResponseStarted(net::URLRequest* request);
virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
- // TODO(willchan): Add functions for consumers to register ways to
- // access/modify the request.
-
- private:
+ ExtensionIOEventRouter* const extension_io_event_router_;
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};