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

Unified Diff: chrome/browser/net/chrome_network_delegate.h

Issue 6598002: Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months 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/net/chrome_network_delegate.h
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index fbac0360cd5fb605db7cc3498a856c9c4fb7ba18..860509f38160bdbfaa92cf93cee9e30aed294fd6 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 "net/base/network_delegate.h"
-class ExtensionIOEventRouter;
+class ExtensionEventRouterForwarder;
+class Profile;
// 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,
+ Profile* profile);
+ 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_;
+ Profile* const profile_;
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698