diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-15 16:39:44 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-15 16:39:44 +0000 |
commit | ac039524eca084f5169500f5d977276d122d2a02 (patch) | |
tree | 0f96468a44177234f2c7d4fd63bd84b38b982c9e /net/http/http_network_layer.h | |
parent | 7c186b16ffa7f386a60223157daa08a897052681 (diff) | |
download | chromium_src-ac039524eca084f5169500f5d977276d122d2a02.zip chromium_src-ac039524eca084f5169500f5d977276d122d2a02.tar.gz chromium_src-ac039524eca084f5169500f5d977276d122d2a02.tar.bz2 |
Add a net::HttpNetworkDelegate and a ChromeNetworkDelegate.
net::HttpNetworkDelegate is an interface for providing hooks into http network activity. ChromeNetworkDelgate implements this interface in chrome/ code. In the future, it might also implement other interfaces. My only current intended consumer for this would be extensions. There's no actual behavior change, this is all just plumbing for now.
BUG=29314
Review URL: http://codereview.chromium.org/2749015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49804 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_layer.h')
-rw-r--r-- | net/http/http_network_layer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h index a045798..54989410 100644 --- a/net/http/http_network_layer.h +++ b/net/http/http_network_layer.h @@ -16,6 +16,7 @@ namespace net { class ClientSocketFactory; class HostResolver; class HttpAuthHandlerFactory; +class HttpNetworkDelegate; class HttpNetworkSession; class NetLog; class NetworkChangeNotifier; @@ -33,6 +34,7 @@ class HttpNetworkLayer : public HttpTransactionFactory { HostResolver* host_resolver, ProxyService* proxy_service, SSLConfigService* ssl_config_service, HttpAuthHandlerFactory* http_auth_handler_factory, + HttpNetworkDelegate* network_delegate, NetLog* net_log); // Construct a HttpNetworkLayer with an existing HttpNetworkSession which // contains a valid ProxyService. @@ -47,6 +49,7 @@ class HttpNetworkLayer : public HttpTransactionFactory { ProxyService* proxy_service, SSLConfigService* ssl_config_service, HttpAuthHandlerFactory* http_auth_handler_factory, + HttpNetworkDelegate* network_delegate, NetLog* net_log); // Create a transaction factory that instantiate a network layer over an // existing network session. Network session contains some valuable @@ -88,6 +91,7 @@ class HttpNetworkLayer : public HttpTransactionFactory { scoped_refptr<SpdySessionPool> spdy_session_pool_; HttpAuthHandlerFactory* http_auth_handler_factory_; + HttpNetworkDelegate* network_delegate_; NetLog* net_log_; bool suspended_; |