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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp

Issue 2715803004: Introduce ThreadableLoadingContext: make threaded loading code one step away from Document (Closed)
Patch Set: . Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp
index 01e0c4173eede66fef0d4a0551f3cc8df3d67a5c..5220a036461be44c0a172ff3c0cd1931fe9bf41c 100644
--- a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp
@@ -4,7 +4,7 @@
#include "core/workers/WorkerLoaderProxy.h"
-#include "core/dom/ExecutionContext.h"
+#include "core/loader/ThreadableLoadingContext.h"
namespace blink {
@@ -44,13 +44,14 @@ void WorkerLoaderProxy::postTaskToWorkerGlobalScope(
m_loaderProxyProvider->postTaskToWorkerGlobalScope(location, std::move(task));
}
-ExecutionContext* WorkerLoaderProxy::getLoaderExecutionContext() {
+ThreadableLoadingContext* WorkerLoaderProxy::getThreadableLoadingContext() {
DCHECK(isMainThread());
// Note: No locking needed for the access from the main thread.
if (!m_loaderProxyProvider)
return nullptr;
- DCHECK(m_loaderProxyProvider->getLoaderExecutionContext()->isContextThread());
- return m_loaderProxyProvider->getLoaderExecutionContext();
+ DCHECK(
+ m_loaderProxyProvider->getThreadableLoadingContext()->isContextThread());
+ return m_loaderProxyProvider->getThreadableLoadingContext();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698