From 3c1c09661eed67a336f309c247fae2c478e4c9e0 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Wed, 13 Apr 2011 21:09:05 +0000 Subject: 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 --- chrome/browser/net/chrome_network_delegate.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/net/chrome_network_delegate.h') 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); -- cgit v1.1