From 195e77d6f2d2f615c2a5138750db124853c0a093 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Thu, 23 Jul 2009 19:10:23 +0000 Subject: Add support to URLRequest for deferring redirects. I chose to add an out parameter to OnReceivedRedirect because it allows for the default behavior to remain the same. I considered adding a ContinueAfterRedirect method that all OnReceivedRedirect implementations would need to call, but this caused one annoying problem: In the case of a ChromePlugin, it is possible for the URLRequest to get deleted inside the handler for the redirect. This would make it hard to subsequently call a method on the URLRequest since I would need to have a way to determine if the URLRequest had been deleted. TEST=covered by unit tests BUG=16413,6442 R=eroman,wtc Review URL: http://codereview.chromium.org/155897 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21417 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/net/url_fetcher.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'chrome/browser/net') diff --git a/chrome/browser/net/url_fetcher.cc b/chrome/browser/net/url_fetcher.cc index 4783aea8..03586eb 100644 --- a/chrome/browser/net/url_fetcher.cc +++ b/chrome/browser/net/url_fetcher.cc @@ -44,8 +44,6 @@ class URLFetcher::Core void Stop(); // URLRequest::Delegate implementations - virtual void OnReceivedRedirect(URLRequest* request, - const GURL& new_url) { } virtual void OnResponseStarted(URLRequest* request); virtual void OnReadCompleted(URLRequest* request, int bytes_read); -- cgit v1.1