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

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..f28f1fe5f4f3e7028dd8e87f789508e6b6a21e0f 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/LoadingContext.h"
namespace blink {
@@ -44,13 +44,13 @@ void WorkerLoaderProxy::postTaskToWorkerGlobalScope(
m_loaderProxyProvider->postTaskToWorkerGlobalScope(location, std::move(task));
}
-ExecutionContext* WorkerLoaderProxy::getLoaderExecutionContext() {
+LoadingContext* WorkerLoaderProxy::getLoadingContext() {
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->getLoadingContext()->isContextThread());
+ return m_loaderProxyProvider->getLoadingContext();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698