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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp

Issue 2840473002: Worker: Remove WorkerLoaderProxy for clean-up (Closed)
Patch Set: clean up 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp b/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
index e5f4ef6cd05ecb34006802cf3e09ae128ccd631e..1d68de4f452eab4759b0eb117d317b874fcc58fd 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp
@@ -52,6 +52,7 @@ class DocumentThreadableLoadingContext final : public ThreadableLoadingContext {
}
RefPtr<WebTaskRunner> GetTaskRunner(TaskType type) override {
+ DCHECK(IsContextThread());
return TaskRunnerHelper::Get(type, document_.Get());
}
@@ -112,6 +113,7 @@ class WorkerThreadableLoadingContext : public ThreadableLoadingContext {
Document* GetLoadingDocument() override { return nullptr; }
RefPtr<WebTaskRunner> GetTaskRunner(TaskType type) override {
+ DCHECK(IsContextThread());
return fetch_context_->LoadingTaskRunner();
}

Powered by Google App Engine
This is Rietveld 408576698