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

Unified Diff: chrome/browser/io_thread.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/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index d0c58de80ee0d9be58b35be9b5ad8d2cf7e00e68..2352225c8a09b97d309b7f90752f4b47b91a1303 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -17,6 +17,7 @@
class ChromeNetLog;
class ChromeURLRequestContextGetter;
+class ExtensionEventRouterForwarder;
class ListValue;
class PrefService;
@@ -57,10 +58,14 @@ class IOThread : public BrowserProcessSubThread {
proxy_script_fetcher_http_transaction_factory;
scoped_ptr<net::URLSecurityManager> url_security_manager;
scoped_refptr<net::URLRequestContext> proxy_script_fetcher_context;
+ scoped_refptr<ExtensionEventRouterForwarder>
+ extension_event_router_forwarder;
};
// |net_log| must either outlive the IOThread or be NULL.
- IOThread(PrefService* local_state, ChromeNetLog* net_log);
+ IOThread(PrefService* local_state,
+ ChromeNetLog* net_log,
+ ExtensionEventRouterForwarder* extension_event_router_forwarder);
virtual ~IOThread();
@@ -134,6 +139,10 @@ class IOThread : public BrowserProcessSubThread {
// threads during shutdown, but is used most frequently on the IOThread.
ChromeNetLog* net_log_;
+ // The ExtensionEventRouterForwarder allows for sending events to extensions
+ // from the IOThread.
+ ExtensionEventRouterForwarder* extension_event_router_forwarder_;
+
// These member variables are basically global, but their lifetimes are tied
// to the IOThread. IOThread owns them all, despite not using scoped_ptr.
// This is because the destructor of IOThread runs on the wrong thread. All

Powered by Google App Engine
This is Rietveld 408576698