Index: third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h |
diff --git a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h |
index 205ece8acbed00d844877a549dde045ec9716808..1e92508dad413ec2426d7e184c7913ef25959fd7 100644 |
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h |
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h |
@@ -54,6 +54,16 @@ class MockFetchContext : public FetchContext { |
FetchParameters::OriginRestriction) const override { |
return ResourceRequestBlockedReason::kNone; |
} |
+ ResourceRequestBlockedReason CanFollowRedirect( |
+ Resource::Type type, |
+ const ResourceRequest& request, |
+ const KURL& url, |
+ const ResourceLoaderOptions& options, |
+ SecurityViolationReportingPolicy reporting_policy, |
+ FetchParameters::OriginRestriction origin_restriction) const override { |
+ return CanRequest(type, request, url, options, reporting_policy, |
+ origin_restriction); |
+ } |
bool ShouldLoadNewResource(Resource::Type) const override { |
return load_policy_ == kShouldLoadNewResource; |
} |