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

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: Cache parser thread pointer in HTMLDocumentParser Created 6 years, 11 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 e53ad70a6e272431e9f5e8053d91e99c8723779e..e18a0f80622fb0dc00454458469ff4b78ecb3eb5 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