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

Side by Side Diff: third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h

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
« no previous file with comments | « third_party/WebKit/public/platform/WebURLLoaderMockFactory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WebURLLoaderTestDelegate_h 5 #ifndef WebURLLoaderTestDelegate_h
6 #define WebURLLoaderTestDelegate_h 6 #define WebURLLoaderTestDelegate_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebURLLoader;
13 class WebURLResponse; 12 class WebURLResponse;
14 class WebURLLoaderClient; 13 class WebURLLoaderClient;
15 struct WebURLError; 14 struct WebURLError;
16 15
17 // Use with WebUnitTestSupport::setLoaderDelegate to intercept calls to a 16 // Use with WebUnitTestSupport::setLoaderDelegate to intercept calls to a
18 // WebURLLoaderClient for controlling network responses in a test. Default 17 // WebURLLoaderClient for controlling network responses in a test. Default
19 // implementations of all methods just call the original method on the 18 // implementations of all methods just call the original method on the
20 // WebURLLoaderClient. 19 // WebURLLoaderClient.
21 class BLINK_PLATFORM_EXPORT WebURLLoaderTestDelegate { 20 class BLINK_PLATFORM_EXPORT WebURLLoaderTestDelegate {
22 public: 21 public:
23 WebURLLoaderTestDelegate(); 22 WebURLLoaderTestDelegate();
24 virtual ~WebURLLoaderTestDelegate(); 23 virtual ~WebURLLoaderTestDelegate();
25 24
26 virtual void didReceiveResponse(WebURLLoaderClient* originalClient, 25 virtual void didReceiveResponse(WebURLLoaderClient* originalClient,
27 WebURLLoader*,
28 const WebURLResponse&); 26 const WebURLResponse&);
29 virtual void didReceiveData(WebURLLoaderClient* originalClient, 27 virtual void didReceiveData(WebURLLoaderClient* originalClient,
30 WebURLLoader*,
31 const char* data, 28 const char* data,
32 int dataLength, 29 int dataLength,
33 int encodedDataLength); 30 int encodedDataLength);
34 virtual void didFail(WebURLLoaderClient* originalClient, 31 virtual void didFail(WebURLLoaderClient* originalClient,
35 WebURLLoader*,
36 const WebURLError&, 32 const WebURLError&,
37 int64_t totalEncodedDataLength, 33 int64_t totalEncodedDataLength,
38 int64_t totalEncodedBodyLength); 34 int64_t totalEncodedBodyLength);
39 virtual void didFinishLoading(WebURLLoaderClient* originalClient, 35 virtual void didFinishLoading(WebURLLoaderClient* originalClient,
40 WebURLLoader*,
41 double finishTime, 36 double finishTime,
42 int64_t totalEncodedDataLength, 37 int64_t totalEncodedDataLength,
43 int64_t totalEncodedBodyLength); 38 int64_t totalEncodedBodyLength);
44 }; 39 };
45 40
46 } // namespace blink 41 } // namespace blink
47 42
48 #endif 43 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebURLLoaderMockFactory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698