OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WorkerFetchContext_h | 5 #ifndef WorkerFetchContext_h |
6 #define WorkerFetchContext_h | 6 #define WorkerFetchContext_h |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/loader/BaseFetchContext.h" | 10 #include "core/loader/BaseFetchContext.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // BaseFetchContext implementation: | 38 // BaseFetchContext implementation: |
39 ContentSettingsClient* GetContentSettingsClient() const override; | 39 ContentSettingsClient* GetContentSettingsClient() const override; |
40 Settings* GetSettings() const override; | 40 Settings* GetSettings() const override; |
41 SubresourceFilter* GetSubresourceFilter() const override; | 41 SubresourceFilter* GetSubresourceFilter() const override; |
42 SecurityContext* GetParentSecurityContext() const override; | 42 SecurityContext* GetParentSecurityContext() const override; |
43 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; | 43 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; |
44 void DispatchDidBlockRequest(const ResourceRequest&, | 44 void DispatchDidBlockRequest(const ResourceRequest&, |
45 const FetchInitiatorInfo&, | 45 const FetchInitiatorInfo&, |
46 ResourceRequestBlockedReason) const override; | 46 ResourceRequestBlockedReason) const override; |
47 void ReportLocalLoadFailed(const KURL&) const override; | |
48 bool ShouldBypassMainWorldCSP() const override; | 47 bool ShouldBypassMainWorldCSP() const override; |
49 bool IsSVGImageChromeClient() const override; | 48 bool IsSVGImageChromeClient() const override; |
50 void CountUsage(UseCounter::Feature) const override; | 49 void CountUsage(UseCounter::Feature) const override; |
51 void CountDeprecation(UseCounter::Feature) const override; | 50 void CountDeprecation(UseCounter::Feature) const override; |
52 bool ShouldBlockFetchByMixedContentCheck( | 51 bool ShouldBlockFetchByMixedContentCheck( |
53 const ResourceRequest&, | 52 const ResourceRequest&, |
54 const KURL&, | 53 const KURL&, |
55 SecurityViolationReportingPolicy) const override; | 54 SecurityViolationReportingPolicy) const override; |
56 | 55 |
57 // FetchContext implementation: | 56 // FetchContext implementation: |
(...skipping 29 matching lines...) Expand all Loading... |
87 | 86 |
88 Member<WorkerGlobalScope> worker_global_scope_; | 87 Member<WorkerGlobalScope> worker_global_scope_; |
89 std::unique_ptr<WebWorkerFetchContext> web_context_; | 88 std::unique_ptr<WebWorkerFetchContext> web_context_; |
90 Member<ResourceFetcher> resource_fetcher_; | 89 Member<ResourceFetcher> resource_fetcher_; |
91 RefPtr<WebTaskRunner> loading_task_runner_; | 90 RefPtr<WebTaskRunner> loading_task_runner_; |
92 }; | 91 }; |
93 | 92 |
94 } // namespace blink | 93 } // namespace blink |
95 | 94 |
96 #endif // WorkerFetchContext_h | 95 #endif // WorkerFetchContext_h |
OLD | NEW |