Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: net/url_request/url_request.h

Issue 173049: Revert r23616 from 172. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/testserver/testserver.py ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.h
===================================================================
--- net/url_request/url_request.h (revision 23700)
+++ net/url_request/url_request.h (working copy)
@@ -103,19 +103,10 @@
//
// When this function is called, the request will still contain the
// original URL, the destination of the redirect is provided in 'new_url'.
- // If the delegate does not cancel the request and |*defer_redirect| is
- // false, then the redirect will be followed, and the request's URL will be
- // changed to the new URL. Otherwise if the delegate does not cancel the
- // request and |*defer_redirect| is true, then the redirect will be
- // followed once FollowDeferredRedirect is called on the URLRequest.
- //
- // The caller must set |*defer_redirect| to false, so that delegates do not
- // need to set it if they are happy with the default behavior of not
- // deferring redirect.
+ // If the request is not canceled the redirect will be followed and the
+ // request's URL will be changed to the new URL.
virtual void OnReceivedRedirect(URLRequest* request,
- const GURL& new_url,
- bool* defer_redirect) {
- }
+ const GURL& new_url) = 0;
// Called when we receive an authentication failure. The delegate should
// call request->SetAuth() with the user's credentials once it obtains them,
@@ -406,10 +397,6 @@
// will be set to an error.
bool Read(net::IOBuffer* buf, int max_bytes, int *bytes_read);
- // This method may be called to follow a redirect that was deferred in
- // response to an OnReceivedRedirect call.
- void FollowDeferredRedirect();
-
// One of the following two methods should be called in response to an
// OnAuthRequired() callback (and only then).
// SetAuth will reissue the request with the given credentials.
« no previous file with comments | « net/tools/testserver/testserver.py ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698