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

Unified Diff: Source/core/loader/DocumentLoader.cpp

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Created 6 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: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index 260a05303bb5078ae1ef963e6a89da0e2ba25e8d..8a7fa2f712497cc48f9980f2eaf62d05cbf8d0ef 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -59,6 +59,7 @@
#include "platform/weborigin/SecurityPolicy.h"
#include "public/platform/Platform.h"
#include "public/platform/WebMimeRegistry.h"
+#include "public/platform/WebThreadedResourceProvider.h"
#include "wtf/Assertions.h"
#include "wtf/text/WTFString.h"
@@ -784,6 +785,14 @@ void DocumentLoader::cancelMainResourceLoad(const ResourceError& resourceError)
mainReceivedError(error);
}
+PassOwnPtr<blink::WebThreadedResourceProvider> DocumentLoader::createThreadedResourceProvider()
+{
+ if (mainResourceLoader())
+ return mainResourceLoader()->createThreadedResourceProvider();
+
+ return nullptr;
+}
+
void DocumentLoader::endWriting(DocumentWriter* writer)
{
ASSERT_UNUSED(writer, m_writer == writer);

Powered by Google App Engine
This is Rietveld 408576698