Chromium Code Reviews| 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. |