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.cc | |
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.cc')
-rw-r--r-- | net/http/http_network_layer.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc index 0b8ed96..2329627 100644 --- a/net/http/http_network_layer.cc +++ b/net/http/http_network_layer.cc @@ -26,6 +26,7 @@ HttpTransactionFactory* HttpNetworkLayer::CreateFactory( ProxyService* proxy_service, SSLConfigService* ssl_config_service, HttpAuthHandlerFactory* http_auth_handler_factory, + HttpNetworkDelegate* network_delegate, NetLog* net_log) { DCHECK(proxy_service); @@ -33,6 +34,7 @@ HttpTransactionFactory* HttpNetworkLayer::CreateFactory( network_change_notifier, host_resolver, proxy_service, ssl_config_service, http_auth_handler_factory, + network_delegate, net_log); } @@ -54,6 +56,7 @@ HttpNetworkLayer::HttpNetworkLayer( ProxyService* proxy_service, SSLConfigService* ssl_config_service, HttpAuthHandlerFactory* http_auth_handler_factory, + HttpNetworkDelegate* network_delegate, NetLog* net_log) : socket_factory_(socket_factory), network_change_notifier_(network_change_notifier), @@ -63,6 +66,7 @@ HttpNetworkLayer::HttpNetworkLayer( session_(NULL), spdy_session_pool_(NULL), http_auth_handler_factory_(http_auth_handler_factory), + network_delegate_(network_delegate), net_log_(net_log), suspended_(false) { DCHECK(proxy_service_); @@ -76,6 +80,7 @@ HttpNetworkLayer::HttpNetworkLayer(HttpNetworkSession* session) session_(session), spdy_session_pool_(session->spdy_session_pool()), http_auth_handler_factory_(NULL), + network_delegate_(NULL), net_log_(NULL), suspended_(false) { DCHECK(session_.get()); @@ -114,6 +119,7 @@ HttpNetworkSession* HttpNetworkLayer::GetSession() { network_change_notifier_, host_resolver_, proxy_service_, socket_factory_, ssl_config_service_, spdy_pool, http_auth_handler_factory_, + network_delegate_, net_log_); // These were just temps for lazy-initializing HttpNetworkSession. network_change_notifier_ = NULL; @@ -122,6 +128,7 @@ HttpNetworkSession* HttpNetworkLayer::GetSession() { socket_factory_ = NULL; http_auth_handler_factory_ = NULL; net_log_ = NULL; + network_delegate_ = NULL; } return session_; } |