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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // BaseFetchContext implementation: | 37 // BaseFetchContext implementation: |
38 ContentSettingsClient* GetContentSettingsClient() const override; | 38 ContentSettingsClient* GetContentSettingsClient() const override; |
39 Settings* GetSettings() const override; | 39 Settings* GetSettings() const override; |
40 SubresourceFilter* GetSubresourceFilter() const override; | 40 SubresourceFilter* GetSubresourceFilter() const override; |
41 SecurityContext* GetParentSecurityContext() const override; | 41 SecurityContext* GetParentSecurityContext() const override; |
42 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; | 42 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; |
43 void DispatchDidBlockRequest(const ResourceRequest&, | 43 void DispatchDidBlockRequest(const ResourceRequest&, |
44 const FetchInitiatorInfo&, | 44 const FetchInitiatorInfo&, |
45 ResourceRequestBlockedReason) const override; | 45 ResourceRequestBlockedReason) const override; |
46 void ReportLocalLoadFailed(const KURL&) const override; | |
47 bool ShouldBypassMainWorldCSP() const override; | 46 bool ShouldBypassMainWorldCSP() const override; |
48 bool IsSVGImageChromeClient() const override; | 47 bool IsSVGImageChromeClient() const override; |
49 void CountUsage(UseCounter::Feature) const override; | 48 void CountUsage(UseCounter::Feature) const override; |
50 void CountDeprecation(UseCounter::Feature) const override; | 49 void CountDeprecation(UseCounter::Feature) const override; |
51 bool ShouldBlockFetchByMixedContentCheck( | 50 bool ShouldBlockFetchByMixedContentCheck( |
52 const ResourceRequest&, | 51 const ResourceRequest&, |
53 const KURL&, | 52 const KURL&, |
54 SecurityViolationReportingPolicy) const override; | 53 SecurityViolationReportingPolicy) const override; |
55 | 54 |
56 // FetchContext implementation: | 55 // FetchContext implementation: |
(...skipping 14 matching lines...) Expand all Loading... |
71 | 70 |
72 Member<WorkerGlobalScope> worker_global_scope_; | 71 Member<WorkerGlobalScope> worker_global_scope_; |
73 std::unique_ptr<WebWorkerFetchContext> web_context_; | 72 std::unique_ptr<WebWorkerFetchContext> web_context_; |
74 Member<ResourceFetcher> resource_fetcher_; | 73 Member<ResourceFetcher> resource_fetcher_; |
75 RefPtr<WebTaskRunner> loading_task_runner_; | 74 RefPtr<WebTaskRunner> loading_task_runner_; |
76 }; | 75 }; |
77 | 76 |
78 } // namespace blink | 77 } // namespace blink |
79 | 78 |
80 #endif // WorkerFetchContext_h | 79 #endif // WorkerFetchContext_h |
OLD | NEW |