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) { |
+ return true; |
+ } |
// Called to report upload progress. The bytes reported correspond to |
// the HTTP message body. |