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

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 4c2f53a150ae65b4282d22cd8b48ba45415ea68a..698e6b8151a141cf5e61febd7946b77a8dd9542e 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -780,6 +780,12 @@ void DocumentLoader::cancelMainResourceLoad(const ResourceError& resourceError)
mainReceivedError(error);
}
+void DocumentLoader::attachThreadedDataReceiver(blink::WebThreadedDataReceiver* threadedDataReceiver)
+{
+ if (mainResourceLoader())
abarth-chromium 2014/03/10 21:52:20 Should it be an error to call this function withou
+ mainResourceLoader()->attachThreadedDataReceiver(threadedDataReceiver);
+}
+
void DocumentLoader::endWriting(DocumentWriter* writer)
{
ASSERT_UNUSED(writer, m_writer == writer);

Powered by Google App Engine
This is Rietveld 408576698