summaryrefslogtreecommitdiffstats
path: root/net/base/network_delegate.h
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 16:58:32 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 16:58:32 +0000
commit31b2e5ff5fa881d9aa1f1b2810d37502a84ab6a7 (patch)
tree93fdd47eb7feaa1d990b436e214a6e9262d1870e /net/base/network_delegate.h
parent086aa35fb71b1c7801f2b04c9bdd44f7a7ac03b1 (diff)
downloadchromium_src-31b2e5ff5fa881d9aa1f1b2810d37502a84ab6a7.zip
chromium_src-31b2e5ff5fa881d9aa1f1b2810d37502a84ab6a7.tar.gz
chromium_src-31b2e5ff5fa881d9aa1f1b2810d37502a84ab6a7.tar.bz2
Implemented of base functionality of chrome.experimental.webRequest.onBeforeRedirect
BUG=60101 TEST=execute browser tests Review URL: http://codereview.chromium.org/6882043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_delegate.h')
-rw-r--r--net/base/network_delegate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 2816248..b642282 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -43,6 +43,8 @@ class NetworkDelegate : public base::NonThreadSafe {
CompletionCallback* callback,
HttpRequestHeaders* headers);
void NotifyRequestSent(uint64 request_id, const HostPortPair& socket_address);
+ void NotifyBeforeRedirect(URLRequest* request,
+ const GURL& new_location);
void NotifyResponseStarted(URLRequest* request);
void NotifyReadCompleted(URLRequest* request, int bytes_read);
void NotifyURLRequestDestroyed(URLRequest* request);
@@ -82,6 +84,10 @@ class NetworkDelegate : public base::NonThreadSafe {
virtual void OnRequestSent(uint64 request_id,
const HostPortPair& socket_address) = 0;
+ // Called right after a redirect response code was received.
+ virtual void OnBeforeRedirect(URLRequest* request,
+ const GURL& new_location) = 0;
+
// This corresponds to URLRequestDelegate::OnResponseStarted.
virtual void OnResponseStarted(URLRequest* request) = 0;