summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_network_delegate.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 21:09:05 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 21:09:05 +0000
commit3c1c09661eed67a336f309c247fae2c478e4c9e0 (patch)
treefb281501ceac2b577df93262ad1dbb92b892e354 /chrome/browser/net/chrome_network_delegate.h
parent41daf23757b53313f7be037204949752400c02f1 (diff)
downloadchromium_src-3c1c09661eed67a336f309c247fae2c478e4c9e0.zip
chromium_src-3c1c09661eed67a336f309c247fae2c478e4c9e0.tar.gz
chromium_src-3c1c09661eed67a336f309c247fae2c478e4c9e0.tar.bz2
Allow extensions to redirect requests in onBeforeRequest.
BUG=60101 TEST=no Review URL: http://codereview.chromium.org/6677148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_network_delegate.h')
-rw-r--r--chrome/browser/net/chrome_network_delegate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index b5c1373..3e414f4 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -40,10 +40,11 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
private:
// NetworkDelegate methods:
virtual int OnBeforeURLRequest(net::URLRequest* request,
- net::CompletionCallback* callback);
+ net::CompletionCallback* callback,
+ GURL* new_url);
virtual int OnBeforeSendHeaders(uint64 request_id,
- net::HttpRequestHeaders* headers,
- net::CompletionCallback* callback);
+ net::CompletionCallback* callback,
+ net::HttpRequestHeaders* headers);
virtual void OnResponseStarted(net::URLRequest* request);
virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
virtual void OnURLRequestDestroyed(net::URLRequest* request);