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 #include "core/loader/WorkerFetchContext.h" | 5 #include "core/loader/WorkerFetchContext.h" |
6 | 6 |
7 #include "core/frame/Deprecation.h" | 7 #include "core/frame/Deprecation.h" |
8 #include "core/frame/UseCounter.h" | 8 #include "core/frame/UseCounter.h" |
9 #include "core/workers/WorkerClients.h" | 9 #include "core/workers/WorkerClients.h" |
10 #include "core/workers/WorkerGlobalScope.h" | 10 #include "core/workers/WorkerGlobalScope.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return false; | 118 return false; |
119 } | 119 } |
120 | 120 |
121 void WorkerFetchContext::DispatchDidBlockRequest( | 121 void WorkerFetchContext::DispatchDidBlockRequest( |
122 const ResourceRequest& resource_request, | 122 const ResourceRequest& resource_request, |
123 const FetchInitiatorInfo& fetch_initiator_info, | 123 const FetchInitiatorInfo& fetch_initiator_info, |
124 ResourceRequestBlockedReason blocked_reason) const { | 124 ResourceRequestBlockedReason blocked_reason) const { |
125 // TODO(horo): Implement this. | 125 // TODO(horo): Implement this. |
126 } | 126 } |
127 | 127 |
128 void WorkerFetchContext::ReportLocalLoadFailed(const KURL&) const { | |
129 // TODO(horo): Implement this. | |
130 } | |
131 | |
132 bool WorkerFetchContext::ShouldBypassMainWorldCSP() const { | 128 bool WorkerFetchContext::ShouldBypassMainWorldCSP() const { |
133 // TODO(horo): Implement this. | 129 // TODO(horo): Implement this. |
134 return false; | 130 return false; |
135 } | 131 } |
136 | 132 |
137 bool WorkerFetchContext::IsSVGImageChromeClient() const { | 133 bool WorkerFetchContext::IsSVGImageChromeClient() const { |
138 return false; | 134 return false; |
139 } | 135 } |
140 | 136 |
141 void WorkerFetchContext::CountUsage(UseCounter::Feature feature) const { | 137 void WorkerFetchContext::CountUsage(UseCounter::Feature feature) const { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 void ProvideWorkerFetchContextToWorker( | 190 void ProvideWorkerFetchContextToWorker( |
195 WorkerClients* clients, | 191 WorkerClients* clients, |
196 std::unique_ptr<WebWorkerFetchContext> web_context) { | 192 std::unique_ptr<WebWorkerFetchContext> web_context) { |
197 DCHECK(clients); | 193 DCHECK(clients); |
198 WorkerFetchContextHolder::ProvideTo( | 194 WorkerFetchContextHolder::ProvideTo( |
199 *clients, WorkerFetchContextHolder::SupplementName(), | 195 *clients, WorkerFetchContextHolder::SupplementName(), |
200 new WorkerFetchContextHolder(std::move(web_context))); | 196 new WorkerFetchContextHolder(std::move(web_context))); |
201 } | 197 } |
202 | 198 |
203 } // namespace blink | 199 } // namespace blink |
OLD | NEW |