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

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

Issue 2519843002: Update ResourceResponse::encodedDataLength when response is completed (Closed)
Patch Set: Update ResourceResponse::encodedDataLength when response is completed 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"
(...skipping 16 matching lines...) Expand all
27 WebURLLoader* loader, 27 WebURLLoader* loader,
28 const char* data, 28 const char* data,
29 int dataLength, 29 int dataLength,
30 int encodedDataLength) { 30 int encodedDataLength) {
31 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength, 31 originalClient->didReceiveData(loader, data, dataLength, encodedDataLength,
32 dataLength); 32 dataLength);
33 } 33 }
34 34
35 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, 35 void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient,
36 WebURLLoader* loader, 36 WebURLLoader* loader,
37 const WebURLError& error) { 37 const WebURLError& error,
38 originalClient->didFail(loader, error); 38 int64_t totalEncodedDataLength) {
39 originalClient->didFail(loader, error, totalEncodedDataLength);
39 } 40 }
40 41
41 void WebURLLoaderTestDelegate::didFinishLoading( 42 void WebURLLoaderTestDelegate::didFinishLoading(
42 WebURLLoaderClient* originalClient, 43 WebURLLoaderClient* originalClient,
43 WebURLLoader* loader, 44 WebURLLoader* loader,
44 double finishTime, 45 double finishTime,
45 int64_t totalEncodedDataLength) { 46 int64_t totalEncodedDataLength) {
46 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength); 47 originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength);
47 } 48 }
48 49
49 } // namespace blink 50 } // 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