Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Revert ResourceLoader changes, handle main resource redirect in DocumentLoader Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/WorkerFetchContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/loader/MixedContentChecker.h" 9 #include "core/loader/MixedContentChecker.h"
10 #include "core/timing/WorkerGlobalScopePerformance.h" 10 #include "core/timing/WorkerGlobalScopePerformance.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return false; 129 return false;
130 } 130 }
131 131
132 void WorkerFetchContext::DispatchDidBlockRequest( 132 void WorkerFetchContext::DispatchDidBlockRequest(
133 const ResourceRequest& resource_request, 133 const ResourceRequest& resource_request,
134 const FetchInitiatorInfo& fetch_initiator_info, 134 const FetchInitiatorInfo& fetch_initiator_info,
135 ResourceRequestBlockedReason blocked_reason) const { 135 ResourceRequestBlockedReason blocked_reason) const {
136 // TODO(horo): Implement this. 136 // TODO(horo): Implement this.
137 } 137 }
138 138
139 void WorkerFetchContext::ReportLocalLoadFailed(const KURL&) const {
140 // Threre is no way to load local files from worker thread.
141 NOTREACHED();
142 }
143
144 bool WorkerFetchContext::ShouldBypassMainWorldCSP() const { 139 bool WorkerFetchContext::ShouldBypassMainWorldCSP() const {
145 // This method was introduced to bypass the page's CSP while running the 140 // This method was introduced to bypass the page's CSP while running the
146 // script from an isolated world (ex: Chrome extensions). But worker threads 141 // script from an isolated world (ex: Chrome extensions). But worker threads
147 // doesn't have any isolated world. So we can just return false. 142 // doesn't have any isolated world. So we can just return false.
148 return false; 143 return false;
149 } 144 }
150 145
151 bool WorkerFetchContext::IsSVGImageChromeClient() const { 146 bool WorkerFetchContext::IsSVGImageChromeClient() const {
152 return false; 147 return false;
153 } 148 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 void ProvideWorkerFetchContextToWorker( 251 void ProvideWorkerFetchContextToWorker(
257 WorkerClients* clients, 252 WorkerClients* clients,
258 std::unique_ptr<WebWorkerFetchContext> web_context) { 253 std::unique_ptr<WebWorkerFetchContext> web_context) {
259 DCHECK(clients); 254 DCHECK(clients);
260 WorkerFetchContextHolder::ProvideTo( 255 WorkerFetchContextHolder::ProvideTo(
261 *clients, WorkerFetchContextHolder::SupplementName(), 256 *clients, WorkerFetchContextHolder::SupplementName(),
262 new WorkerFetchContextHolder(std::move(web_context))); 257 new WorkerFetchContextHolder(std::move(web_context)));
263 } 258 }
264 259
265 } // namespace blink 260 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/WorkerFetchContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698