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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoader.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/loader/ThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp
index 11cedc543327d4ff784f6e7032b58911b7423233..85c905394a10fd36275a3ab08373b9ff105da573 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoader.cpp
@@ -33,6 +33,7 @@
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/loader/DocumentThreadableLoader.h"
+#include "core/loader/LoadingContext.h"
#include "core/loader/WorkerThreadableLoader.h"
#include "core/workers/WorkerGlobalScope.h"
@@ -50,8 +51,9 @@ ThreadableLoader* ThreadableLoader::create(
options, resourceLoaderOptions);
}
- return DocumentThreadableLoader::create(toDocument(context), client, options,
- resourceLoaderOptions);
+ return DocumentThreadableLoader::create(
+ *LoadingContext::create(*toDocument(&context)), client, options,
+ resourceLoaderOptions);
}
void ThreadableLoader::loadResourceSynchronously(

Powered by Google App Engine
This is Rietveld 408576698