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

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

Issue 156623005: Add transfer size paramater to didFinishLoading [3/3] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 1c66c9206d099f7d860a92cc52727ebe6712fc2e..bee4a398525c11ff4ea4a1b9b68882416653f9ee 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -41,6 +41,7 @@
#include "core/page/Page.h"
#include "core/frame/Settings.h"
#include "platform/weborigin/SecurityPolicy.h"
+#include "public/platform/WebURLLoaderClient.h"
namespace WebCore {
@@ -179,13 +180,13 @@ void FrameFetchContext::dispatchDidDownloadData(DocumentLoader*, unsigned long i
InspectorInstrumentation::didReceiveData(m_frame, identifier, 0, dataLength, encodedDataLength);
}
-void FrameFetchContext::dispatchDidFinishLoading(DocumentLoader* loader, unsigned long identifier, double finishTime)
+void FrameFetchContext::dispatchDidFinishLoading(DocumentLoader* loader, unsigned long identifier, double finishTime, int64_t encodedDataLength)
{
if (Page* page = m_frame->page())
page->progress().completeProgress(identifier);
m_frame->loader().client()->dispatchDidFinishLoading(loader, identifier);
- InspectorInstrumentation::didFinishLoading(m_frame, identifier, ensureLoader(loader), finishTime);
+ InspectorInstrumentation::didFinishLoading(m_frame, identifier, ensureLoader(loader), finishTime, encodedDataLength);
}
void FrameFetchContext::dispatchDidFail(DocumentLoader* loader, unsigned long identifier, const ResourceError& error)
@@ -203,7 +204,7 @@ void FrameFetchContext::sendRemainingDelegateMessages(DocumentLoader* loader, un
if (dataLength > 0)
dispatchDidReceiveData(ensureLoader(loader), identifier, 0, dataLength, 0);
- dispatchDidFinishLoading(ensureLoader(loader), identifier, 0);
+ dispatchDidFinishLoading(ensureLoader(loader), identifier, 0, blink::WebURLLoaderClient::kUnknownEncodedDataLength);
vsevik 2014/02/07 09:37:08 0, we have loaded from memory cache.
eustas 2014/02/10 12:36:02 Done.
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698