summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 16:39:44 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 16:39:44 +0000
commitac039524eca084f5169500f5d977276d122d2a02 (patch)
tree0f96468a44177234f2c7d4fd63bd84b38b982c9e /net/url_request
parent7c186b16ffa7f386a60223157daa08a897052681 (diff)
downloadchromium_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/url_request')
-rw-r--r--net/url_request/url_request_context.h3
-rw-r--r--net/url_request/url_request_unittest.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index cd1736b..36b42b3 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -24,6 +24,7 @@ namespace net {
class CookiePolicy;
class FtpTransactionFactory;
class HttpAuthHandlerFactory;
+class HttpNetworkDelegate;
class HttpTransactionFactory;
class SocketStream;
}
@@ -38,6 +39,7 @@ class URLRequestContext
http_transaction_factory_(NULL),
ftp_transaction_factory_(NULL),
http_auth_handler_factory_(NULL),
+ network_delegate_(NULL),
cookie_policy_(NULL),
transport_security_state_(NULL) {
}
@@ -138,6 +140,7 @@ class URLRequestContext
net::HttpTransactionFactory* http_transaction_factory_;
net::FtpTransactionFactory* ftp_transaction_factory_;
net::HttpAuthHandlerFactory* http_auth_handler_factory_;
+ net::HttpNetworkDelegate* network_delegate_;
scoped_refptr<net::CookieStore> cookie_store_;
net::CookiePolicy* cookie_policy_;
scoped_refptr<net::TransportSecurityState> transport_security_state_;
diff --git a/net/url_request/url_request_unittest.h b/net/url_request/url_request_unittest.h
index 3546832..02f8ab0 100644
--- a/net/url_request/url_request_unittest.h
+++ b/net/url_request/url_request_unittest.h
@@ -166,6 +166,7 @@ class TestURLRequestContext : public URLRequestContext {
proxy_service_,
ssl_config_service_,
http_auth_handler_factory_,
+ network_delegate_,
NULL),
net::HttpCache::DefaultBackend::InMemory(0));
// In-memory cookie store.