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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimRequest.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/SimRequest.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
index df46ca526a98ee231e1cd72ea290b4e5aaeea3bb..9d18ee86f8885c27300d50723998fa24285b558e 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
@@ -55,16 +55,18 @@ void SimRequest::write(const String& data) {
DCHECK(!m_error.reason);
m_totalEncodedDataLength += data.length();
m_client->didReceiveData(m_loader, data.utf8().data(), data.length(),
- data.length(), data.length());
+ data.length());
}
void SimRequest::finish() {
DCHECK(m_isReady);
if (m_error.reason) {
- m_client->didFail(m_loader, m_error, m_totalEncodedDataLength);
+ m_client->didFail(m_loader, m_error, m_totalEncodedDataLength,
+ m_totalEncodedDataLength);
} else {
// TODO(esprehn): Is claiming a request time of 0 okay for tests?
- m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength);
+ m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength,
+ m_totalEncodedDataLength);
}
reset();
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp ('k') | third_party/WebKit/public/platform/WebURLLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698