diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 23:11:34 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 23:11:34 +0000 |
commit | 5aa2013cf0fd9c0bb03eb2a1de01774bf2848c38 (patch) | |
tree | 2415e8c89e7da63f7834d9ddfaa7adfbcabe54ee /net/url_request | |
parent | edd91a9b18019e2ea6159cf43b6e0fb0fdc13fbc (diff) | |
download | chromium_src-5aa2013cf0fd9c0bb03eb2a1de01774bf2848c38.zip chromium_src-5aa2013cf0fd9c0bb03eb2a1de01774bf2848c38.tar.gz chromium_src-5aa2013cf0fd9c0bb03eb2a1de01774bf2848c38.tar.bz2 |
Flesh out the onBeforeSendHeaders event a bit more. We now send the
requestHeaders and allow the extension to modify them.
I also changed the network delegate callbacks, so that they accept arguments beyond just a status code, and they do not outlive the object they are bound to.
BUG=60101
TEST=automated
Review URL: http://codereview.chromium.org/6899001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_test_util.cc | 3 | ||||
-rw-r--r-- | net/url_request/url_request_test_util.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc index 96d1391..f89458a 100644 --- a/net/url_request/url_request_test_util.cc +++ b/net/url_request/url_request_test_util.cc @@ -298,6 +298,9 @@ void TestNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { destroyed_requests_++; } +void TestNetworkDelegate::OnHttpTransactionDestroyed(uint64 request_id) { +} + net::URLRequestJob* TestNetworkDelegate::OnMaybeCreateURLRequestJob( net::URLRequest* request) { return NULL; diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h index 0778e13..0fbf052 100644 --- a/net/url_request/url_request_test_util.h +++ b/net/url_request/url_request_test_util.h @@ -212,6 +212,7 @@ class TestNetworkDelegate : public net::NetworkDelegate { virtual void OnResponseStarted(net::URLRequest* request); virtual void OnCompleted(net::URLRequest* request); virtual void OnURLRequestDestroyed(net::URLRequest* request); + virtual void OnHttpTransactionDestroyed(uint64 request_id); virtual net::URLRequestJob* OnMaybeCreateURLRequestJob( net::URLRequest* request); |