OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "public/platform/WebURLLoaderTestDelegate.h" |
| 7 |
| 8 #include "public/platform/WebURLError.h" |
| 9 #include "public/platform/WebURLLoader.h" |
| 10 #include "public/platform/WebURLLoaderClient.h" |
| 11 #include "public/platform/WebURLRequest.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 WebURLLoaderTestDelegate::WebURLLoaderTestDelegate() |
| 16 { |
| 17 } |
| 18 |
| 19 WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() |
| 20 { |
| 21 } |
| 22 |
| 23 void WebURLLoaderTestDelegate::didReceiveResponse(WebURLLoaderClient* originalCl
ient, WebURLLoader* loader, const WebURLResponse& response) |
| 24 { |
| 25 originalClient->didReceiveResponse(loader, response); |
| 26 } |
| 27 |
| 28 void WebURLLoaderTestDelegate::didReceiveData(WebURLLoaderClient* originalClient
, WebURLLoader* loader, const char* data, int dataLength, int encodedDataLength) |
| 29 { |
| 30 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength); |
| 31 } |
| 32 |
| 33 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, WebUR
LLoader* loader, const WebURLError& error) |
| 34 { |
| 35 originalClient->didFail(loader, error); |
| 36 } |
| 37 |
| 38 void WebURLLoaderTestDelegate::didFinishLoading(WebURLLoaderClient* originalClie
nt, WebURLLoader* loader, double finishTime, int64_t totalEncodedDataLength) |
| 39 { |
| 40 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength)
; |
| 41 } |
| 42 |
| 43 } // namespace blink |
OLD | NEW |