Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp

Issue 2537753002: Remove WebURLLoader* argument from WebURLLoaderClient methods (Closed)
Patch Set: a Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() {} 16 WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() {}
17 17
18 void WebURLLoaderTestDelegate::didReceiveResponse( 18 void WebURLLoaderTestDelegate::didReceiveResponse(
19 WebURLLoaderClient* originalClient, 19 WebURLLoaderClient* originalClient,
20 WebURLLoader* loader,
21 const WebURLResponse& response) { 20 const WebURLResponse& response) {
22 originalClient->didReceiveResponse(loader, response); 21 originalClient->didReceiveResponse(response);
23 } 22 }
24 23
25 void WebURLLoaderTestDelegate::didReceiveData( 24 void WebURLLoaderTestDelegate::didReceiveData(
26 WebURLLoaderClient* originalClient, 25 WebURLLoaderClient* originalClient,
27 WebURLLoader* loader,
28 const char* data, 26 const char* data,
29 int dataLength, 27 int dataLength,
30 int encodedDataLength) { 28 int encodedDataLength) {
31 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength); 29 originalClient->didReceiveData(data, dataLength, encodedDataLength);
32 } 30 }
33 31
34 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, 32 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient,
35 WebURLLoader* loader,
36 const WebURLError& error, 33 const WebURLError& error,
37 int64_t totalEncodedDataLength, 34 int64_t totalEncodedDataLength,
38 int64_t totalEncodedBodyLength) { 35 int64_t totalEncodedBodyLength) {
39 originalClient->didFail(loader, error, totalEncodedDataLength, 36 originalClient->didFail(error, totalEncodedDataLength,
40 totalEncodedBodyLength); 37 totalEncodedBodyLength);
41 } 38 }
42 39
43 void WebURLLoaderTestDelegate::didFinishLoading( 40 void WebURLLoaderTestDelegate::didFinishLoading(
44 WebURLLoaderClient* originalClient, 41 WebURLLoaderClient* originalClient,
45 WebURLLoader* loader,
46 double finishTime, 42 double finishTime,
47 int64_t totalEncodedDataLength, 43 int64_t totalEncodedDataLength,
48 int64_t totalEncodedBodyLength) { 44 int64_t totalEncodedBodyLength) {
49 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength, 45 originalClient->didFinishLoading(finishTime, totalEncodedDataLength,
50 totalEncodedBodyLength); 46 totalEncodedBodyLength);
51 } 47 }
52 48
53 } // namespace blink 49 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698