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

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, 2 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 | « third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698