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 c19985a1fb49128007862c6d0636ff2c2547aed9..93f4f8112e76a332096e355933cbf1a74a774523 100644 |
--- a/third_party/WebKit/public/platform/WebURLLoaderClient.h |
+++ b/third_party/WebKit/public/platform/WebURLLoaderClient.h |
@@ -47,9 +47,14 @@ class BLINK_PLATFORM_EXPORT WebURLLoaderClient { |
// 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*, |
+ // |
+ // Implementations should return true to instruct the loader to follow the, |
+ // redirect, or false otherwise. |
+ virtual bool willFollowRedirect(WebURLLoader*, |
WebURLRequest& newRequest, |
- const WebURLResponse& redirectResponse) {} |
+ const WebURLResponse& redirectResponse) { |
+ return true; |
+ } |
// Called to report upload progress. The bytes reported correspond to |
// the HTTP message body. |