| 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 13 matching lines...) Expand all Loading... |
| 24 void WebURLLoaderTestDelegate::DidReceiveData( | 24 void WebURLLoaderTestDelegate::DidReceiveData( |
| 25 WebURLLoaderClient* original_client, | 25 WebURLLoaderClient* original_client, |
| 26 const char* data, | 26 const char* data, |
| 27 int data_length) { | 27 int data_length) { |
| 28 original_client->DidReceiveData(data, data_length); | 28 original_client->DidReceiveData(data, data_length); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void WebURLLoaderTestDelegate::DidFail(WebURLLoaderClient* original_client, | 31 void WebURLLoaderTestDelegate::DidFail(WebURLLoaderClient* original_client, |
| 32 const WebURLError& error, | 32 const WebURLError& error, |
| 33 int64_t total_encoded_data_length, | 33 int64_t total_encoded_data_length, |
| 34 int64_t total_encoded_body_length) { | 34 int64_t total_encoded_body_length, |
| 35 int64_t total_decoded_body_length) { |
| 35 original_client->DidFail(error, total_encoded_data_length, | 36 original_client->DidFail(error, total_encoded_data_length, |
| 36 total_encoded_body_length); | 37 total_encoded_body_length, |
| 38 total_decoded_body_length); |
| 37 } | 39 } |
| 38 | 40 |
| 39 void WebURLLoaderTestDelegate::DidFinishLoading( | 41 void WebURLLoaderTestDelegate::DidFinishLoading( |
| 40 WebURLLoaderClient* original_client, | 42 WebURLLoaderClient* original_client, |
| 41 double finish_time, | 43 double finish_time, |
| 42 int64_t total_encoded_data_length, | 44 int64_t total_encoded_data_length, |
| 43 int64_t total_encoded_body_length) { | 45 int64_t total_encoded_body_length, |
| 46 int64_t total_decoded_body_length) { |
| 44 original_client->DidFinishLoading(finish_time, total_encoded_data_length, | 47 original_client->DidFinishLoading(finish_time, total_encoded_data_length, |
| 45 total_encoded_body_length); | 48 total_encoded_body_length, |
| 49 total_decoded_body_length); |
| 46 } | 50 } |
| 47 | 51 |
| 48 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |