OLD | NEW |
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 Loading... |
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 |
OLD | NEW |