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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "public/platform/WebURLLoaderTestDelegate.h" 5 #include "public/platform/WebURLLoaderTestDelegate.h"
6 6
7 #include "public/platform/WebURLError.h" 7 #include "public/platform/WebURLError.h"
8 #include "public/platform/WebURLLoader.h" 8 #include "public/platform/WebURLLoader.h"
9 #include "public/platform/WebURLLoaderClient.h" 9 #include "public/platform/WebURLLoaderClient.h"
10 #include "public/platform/WebURLRequest.h" 10 #include "public/platform/WebURLRequest.h"
(...skipping 10 matching lines...) Expand all
21 const WebURLResponse& response) { 21 const WebURLResponse& response) {
22 originalClient->didReceiveResponse(loader, response); 22 originalClient->didReceiveResponse(loader, response);
23 } 23 }
24 24
25 void WebURLLoaderTestDelegate::didReceiveData( 25 void WebURLLoaderTestDelegate::didReceiveData(
26 WebURLLoaderClient* originalClient, 26 WebURLLoaderClient* originalClient,
27 WebURLLoader* loader, 27 WebURLLoader* loader,
28 const char* data, 28 const char* data,
29 int dataLength, 29 int dataLength,
30 int encodedDataLength) { 30 int encodedDataLength) {
31 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength, 31 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength);
32 dataLength);
33 } 32 }
34 33
35 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, 34 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient,
36 WebURLLoader* loader, 35 WebURLLoader* loader,
37 const WebURLError& error, 36 const WebURLError& error,
38 int64_t totalEncodedDataLength) { 37 int64_t totalEncodedDataLength,
39 originalClient->didFail(loader, error, totalEncodedDataLength); 38 int64_t totalEncodedBodyLength) {
39 originalClient->didFail(loader, error, totalEncodedDataLength,
40 totalEncodedBodyLength);
40 } 41 }
41 42
42 void WebURLLoaderTestDelegate::didFinishLoading( 43 void WebURLLoaderTestDelegate::didFinishLoading(
43 WebURLLoaderClient* originalClient, 44 WebURLLoaderClient* originalClient,
44 WebURLLoader* loader, 45 WebURLLoader* loader,
45 double finishTime, 46 double finishTime,
46 int64_t totalEncodedDataLength) { 47 int64_t totalEncodedDataLength,
47 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength); 48 int64_t totalEncodedBodyLength) {
49 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength,
50 totalEncodedBodyLength);
48 } 51 }
49 52
50 } // namespace blink 53 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/platform/testing/weburl_loader_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698