| 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
|
|
|