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

Unified Diff: third_party/WebKit/Source/core/fetch/RawResource.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
Index: third_party/WebKit/Source/core/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.h b/third_party/WebKit/Source/core/fetch/RawResource.h
index 1030f940c63334b0b28d4642bd29309f84865498..bd34d00ef4daec90f6bc876ec3cff5ccf0d5b888 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.h
+++ b/third_party/WebKit/Source/core/fetch/RawResource.h
@@ -84,7 +84,8 @@ class CORE_EXPORT RawResource final : public Resource {
return !isLinkPreload();
}
- void willFollowRedirect(ResourceRequest&, const ResourceResponse&) override;
+ bool willFollowRedirect(const ResourceRequest&,
+ const ResourceResponse&) override;
void willNotFollowRedirect() override;
void responseReceived(const ResourceResponse&,
std::unique_ptr<WebDataConsumerHandle>) override;
@@ -144,9 +145,11 @@ class CORE_EXPORT RawResourceClient : public ResourceClient {
virtual void dataReceived(Resource*,
const char* /* data */,
size_t /* length */) {}
- virtual void redirectReceived(Resource*,
- ResourceRequest&,
- const ResourceResponse&) {}
+ virtual bool redirectReceived(Resource*,
+ const ResourceRequest&,
+ const ResourceResponse&) {
+ return true;
+ }
virtual void redirectBlocked() {}
virtual void dataDownloaded(Resource*, int) {}
virtual void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) {}
« no previous file with comments | « media/blink/resource_multibuffer_data_provider.cc ('k') | third_party/WebKit/Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698