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

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

Issue 690793003: Threaded data provider: Support main thread data notifications (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 5 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/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 6029126f57ab76274d1b45ffca6e5d015a48505c..f886965c4642a9e9ca147f6962794fc851f9e3bd 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -158,7 +158,7 @@ void FrameFetchContext::dispatchDidReceiveResponse(DocumentLoader* loader, unsig
void FrameFetchContext::dispatchDidReceiveData(DocumentLoader*, unsigned long identifier, const char* data, int dataLength, int encodedDataLength)
{
- m_frame->loader().progress().incrementProgress(identifier, data, dataLength);
+ m_frame->loader().progress().incrementProgress(identifier, dataLength);
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ResourceReceivedData", "data", InspectorReceiveDataEvent::data(identifier, m_frame, encodedDataLength));
// FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeline migrates to tracing.
InspectorInstrumentation::didReceiveData(m_frame, identifier, data, dataLength, encodedDataLength);
@@ -166,7 +166,7 @@ void FrameFetchContext::dispatchDidReceiveData(DocumentLoader*, unsigned long id
void FrameFetchContext::dispatchDidDownloadData(DocumentLoader*, unsigned long identifier, int dataLength, int encodedDataLength)
{
- m_frame->loader().progress().incrementProgress(identifier, 0, dataLength);
+ m_frame->loader().progress().incrementProgress(identifier, dataLength);
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ResourceReceivedData", "data", InspectorReceiveDataEvent::data(identifier, m_frame, encodedDataLength));
// FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeline migrates to tracing.
InspectorInstrumentation::didReceiveData(m_frame, identifier, 0, dataLength, encodedDataLength);

Powered by Google App Engine
This is Rietveld 408576698