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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
index 97691606c7d3d1c0975c225706ef0f4ed53d5665..f6855545a08d772925472a0bfaa49cc0a86792c0 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
@@ -56,16 +56,17 @@ void SimNetwork::didReceiveData(WebURLLoaderClient* client,
int dataLength,
int encodedDataLength) {
if (!m_currentRequest)
- client->didReceiveData(loader, data, dataLength, encodedDataLength,
- dataLength);
+ client->didReceiveData(loader, data, dataLength, encodedDataLength);
}
void SimNetwork::didFail(WebURLLoaderClient* client,
WebURLLoader* loader,
const WebURLError& error,
- int64_t encodedDataLength) {
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {
if (!m_currentRequest) {
- client->didFail(loader, error, encodedDataLength);
+ client->didFail(loader, error, totalEncodedDataLength,
+ totalEncodedBodyLength);
return;
}
m_currentRequest->didFail(error);
@@ -74,9 +75,11 @@ void SimNetwork::didFail(WebURLLoaderClient* client,
void SimNetwork::didFinishLoading(WebURLLoaderClient* client,
WebURLLoader* loader,
double finishTime,
- int64_t totalEncodedDataLength) {
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {
if (!m_currentRequest) {
- client->didFinishLoading(loader, finishTime, totalEncodedDataLength);
+ client->didFinishLoading(loader, finishTime, totalEncodedDataLength,
+ totalEncodedBodyLength);
return;
}
m_currentRequest = nullptr;
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.h ('k') | third_party/WebKit/Source/web/tests/sim/SimRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698