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" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 WebURLLoaderTestDelegate::WebURLLoaderTestDelegate() | 14 WebURLLoaderTestDelegate::WebURLLoaderTestDelegate() |
15 { | 15 { |
16 } | 16 } |
17 | 17 |
18 WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() | 18 WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() |
19 { | 19 { |
20 } | 20 } |
21 | 21 |
22 void WebURLLoaderTestDelegate::didReceiveResponse(WebURLLoaderClient* originalCl
ient, WebURLLoader* loader, const WebURLResponse& response) | 22 void WebURLLoaderTestDelegate::didReceiveResponse(WebURLLoaderClient* originalCl
ient, WebURLLoader* loader, const WebURLResponse& response) |
23 { | 23 { |
24 originalClient->didReceiveResponse(loader, response); | 24 originalClient->didReceiveResponse(loader, response); |
25 } | 25 } |
26 | 26 |
27 void WebURLLoaderTestDelegate::didReceiveData(WebURLLoaderClient* originalClient
, WebURLLoader* loader, const char* data, int dataLength, int encodedDataLength) | 27 void WebURLLoaderTestDelegate::didReceiveData(WebURLLoaderClient* originalClient
, WebURLLoader* loader, const char* data, int dataLength, int encodedDataLength) |
28 { | 28 { |
29 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength); | 29 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength,
dataLength); |
30 } | 30 } |
31 | 31 |
32 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, WebUR
LLoader* loader, const WebURLError& error) | 32 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, WebUR
LLoader* loader, const WebURLError& error) |
33 { | 33 { |
34 originalClient->didFail(loader, error); | 34 originalClient->didFail(loader, error); |
35 } | 35 } |
36 | 36 |
37 void WebURLLoaderTestDelegate::didFinishLoading(WebURLLoaderClient* originalClie
nt, WebURLLoader* loader, double finishTime, int64_t totalEncodedDataLength) | 37 void WebURLLoaderTestDelegate::didFinishLoading(WebURLLoaderClient* originalClie
nt, WebURLLoader* loader, double finishTime, int64_t totalEncodedDataLength) |
38 { | 38 { |
39 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength)
; | 39 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength)
; |
40 } | 40 } |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
OLD | NEW |