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

Unified Diff: third_party/WebKit/public/platform/WebURLLoaderClient.h

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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
Index: third_party/WebKit/public/platform/WebURLLoaderClient.h
diff --git a/third_party/WebKit/public/platform/WebURLLoaderClient.h b/third_party/WebKit/public/platform/WebURLLoaderClient.h
index 9f93cbcc6957dc7248204a69f181227ec86583e2..ea034c81acf59e6a21ebc49a0ef31b0c65210b6e 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderClient.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderClient.h
@@ -47,8 +47,13 @@ public:
// generated by the redirect. The client may modify |newRequest|.
// |encodedDataLength| is the size of the data that came from the network
// for this redirect, or zero if the redirect was served from cache.
- virtual void willFollowRedirect(
- WebURLLoader*, WebURLRequest& newRequest, const WebURLResponse& redirectResponse, int64_t encodedDataLength) {}
+ //
+ // Implementations should return true to instruct the loader to follow the,
+ // redirect, or false otherwise.
+ virtual bool willFollowRedirect(
+ WebURLLoader*, WebURLRequest& newRequest, const WebURLResponse& redirectResponse, int64_t encodedDataLength) {
jochen (gone - plz use gerrit) 2016/09/19 14:26:54 should newRequest be const now?
tyoshino (SeeGerritForStatus) 2016/09/26 14:48:41 Please see this. I'd like to give it try later as
jochen (gone - plz use gerrit) 2016/09/27 19:17:27 I'm worried that not doing this in one will put us
tyoshino (SeeGerritForStatus) 2016/09/29 13:40:22 To support by loading the AssociatedURLLoader, the
tyoshino (SeeGerritForStatus) 2016/09/29 13:41:17 s/by loading/loading by/;
+ return true;
+ }
// Called to report upload progress. The bytes reported correspond to
// the HTTP message body.

Powered by Google App Engine
This is Rietveld 408576698