| 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 16 matching lines...) Expand all Loading... |
| 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); | 32 dataLength); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, | 35 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, |
| 36 WebURLLoader* loader, | 36 WebURLLoader* loader, |
| 37 const WebURLError& error) { | 37 const WebURLError& error, |
| 38 originalClient->didFail(loader, error); | 38 int64_t totalEncodedDataLength) { |
| 39 originalClient->didFail(loader, error, totalEncodedDataLength); |
| 39 } | 40 } |
| 40 | 41 |
| 41 void WebURLLoaderTestDelegate::didFinishLoading( | 42 void WebURLLoaderTestDelegate::didFinishLoading( |
| 42 WebURLLoaderClient* originalClient, | 43 WebURLLoaderClient* originalClient, |
| 43 WebURLLoader* loader, | 44 WebURLLoader* loader, |
| 44 double finishTime, | 45 double finishTime, |
| 45 int64_t totalEncodedDataLength) { | 46 int64_t totalEncodedDataLength) { |
| 46 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength); | 47 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength); |
| 47 } | 48 } |
| 48 | 49 |
| 49 } // namespace blink | 50 } // namespace blink |
| OLD | NEW |