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

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

Issue 1303953003: Expand the interface to WebURLLoaderTestDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing files. Created 5 years, 4 months 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 | Annotate | Revision Log
OLDNEW
(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 #ifndef WebURLLoaderTestDelegate_h
6 #define WebURLLoaderTestDelegate_h
7
8 #include "public/platform/WebCommon.h"
9
10 namespace blink {
11
12 class WebURLLoader;
13 class WebURLResponse;
14 class WebURLLoaderClient;
15 struct WebURLError;
16
17 // Use with WebUnitTestSupport::setLoaderDelegate to intercept calls to a
18 // WebURLLoaderClient for controlling network responses in a test. Default
19 // implementations of all methods just call the original method on the
20 // WebURLLoaderClient.
21 class BLINK_PLATFORM_EXPORT WebURLLoaderTestDelegate {
22 public:
23 WebURLLoaderTestDelegate();
24 virtual ~WebURLLoaderTestDelegate();
25
26 virtual void didReceiveResponse(WebURLLoaderClient* originalClient, WebURLLo ader*, const WebURLResponse&);
27 virtual void didReceiveData(WebURLLoaderClient* originalClient, WebURLLoader *, const char* data, int dataLength, int encodedDataLength);
28 virtual void didFail(WebURLLoaderClient* originalClient, WebURLLoader*, cons t WebURLError&);
29 virtual void didFinishLoading(WebURLLoaderClient* originalClient, WebURLLoad er*, double finishTime, int64_t totalEncodedDataLength);
30 };
31
32 } // namespace blink
33
34 #endif
OLDNEW
« no previous file with comments | « Source/platform/exported/WebURLLoaderTestDelegate.cpp ('k') | public/platform/WebUnitTestSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698