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

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

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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
OLDNEW
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698