summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_network_delegate.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 12:01:15 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 12:01:15 +0000
commit3ce02419d4f7b3cd1fc062f87fb63a78072b5483 (patch)
tree6bdbb2cc363827fe8fb6186d5cbf5787f5aaf29d /chrome/browser/net/chrome_network_delegate.h
parentaf3f286560a8fadb4eb6cb51c7ba2cb0f8e17a66 (diff)
downloadchromium_src-3ce02419d4f7b3cd1fc062f87fb63a78072b5483.zip
chromium_src-3ce02419d4f7b3cd1fc062f87fb63a78072b5483.tar.gz
chromium_src-3ce02419d4f7b3cd1fc062f87fb63a78072b5483.tar.bz2
Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarder
BUG=73903 TEST=tests for proxy and webrequest API should still work Review URL: http://codereview.chromium.org/6598002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_network_delegate.h')
-rw-r--r--chrome/browser/net/chrome_network_delegate.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index fbac036..5b3fb15 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -7,17 +7,22 @@
#pragma once
#include "base/basictypes.h"
+#include "base/ref_counted.h"
+#include "chrome/browser/profiles/profile.h"
#include "net/base/network_delegate.h"
-class ExtensionIOEventRouter;
+class ExtensionEventRouterForwarder;
// ChromeNetworkDelegate is the central point from within the chrome code to
// add hooks into the network stack.
class ChromeNetworkDelegate : public net::NetworkDelegate {
public:
+ // If |profile| is NULL, events will be broadcasted to all profiles,
+ // otherwise, they will be only send to the specified profile.
explicit ChromeNetworkDelegate(
- ExtensionIOEventRouter* extension_io_event_router);
- ~ChromeNetworkDelegate();
+ ExtensionEventRouterForwarder* event_router,
+ ProfileId profile_id);
+ virtual ~ChromeNetworkDelegate();
private:
// NetworkDelegate methods:
@@ -26,7 +31,8 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
virtual void OnResponseStarted(net::URLRequest* request);
virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
- ExtensionIOEventRouter* const extension_io_event_router_;
+ scoped_refptr<ExtensionEventRouterForwarder> event_router_;
+ const ProfileId profile_id_;
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};