| 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 03b3eb8adc403a5aef2dd9428540fccfefc604c5..2867f11816d25b046f4f4235c0649b45046e0614 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 {
|
| FetchRequest::OriginRestriction) const override {
|
| return ResourceRequestBlockedReason::kNone;
|
| }
|
| + ResourceRequestBlockedReason CanFollowRedirect(
|
| + Resource::Type type,
|
| + const ResourceRequest& request,
|
| + const KURL& url,
|
| + const ResourceLoaderOptions& options,
|
| + SecurityViolationReportingPolicy reporting_policy,
|
| + FetchRequest::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;
|
| }
|
|
|