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

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

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 8 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
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 13 matching lines...) Expand all
24 void WebURLLoaderTestDelegate::DidReceiveData( 24 void WebURLLoaderTestDelegate::DidReceiveData(
25 WebURLLoaderClient* original_client, 25 WebURLLoaderClient* original_client,
26 const char* data, 26 const char* data,
27 int data_length) { 27 int data_length) {
28 original_client->DidReceiveData(data, data_length); 28 original_client->DidReceiveData(data, data_length);
29 } 29 }
30 30
31 void WebURLLoaderTestDelegate::DidFail(WebURLLoaderClient* original_client, 31 void WebURLLoaderTestDelegate::DidFail(WebURLLoaderClient* original_client,
32 const WebURLError& error, 32 const WebURLError& error,
33 int64_t total_encoded_data_length, 33 int64_t total_encoded_data_length,
34 int64_t total_encoded_body_length) { 34 int64_t total_encoded_body_length,
35 int64_t total_decoded_body_length) {
35 original_client->DidFail(error, total_encoded_data_length, 36 original_client->DidFail(error, total_encoded_data_length,
36 total_encoded_body_length); 37 total_encoded_body_length,
38 total_decoded_body_length);
37 } 39 }
38 40
39 void WebURLLoaderTestDelegate::DidFinishLoading( 41 void WebURLLoaderTestDelegate::DidFinishLoading(
40 WebURLLoaderClient* original_client, 42 WebURLLoaderClient* original_client,
41 double finish_time, 43 double finish_time,
42 int64_t total_encoded_data_length, 44 int64_t total_encoded_data_length,
43 int64_t total_encoded_body_length) { 45 int64_t total_encoded_body_length,
46 int64_t total_decoded_body_length) {
44 original_client->DidFinishLoading(finish_time, total_encoded_data_length, 47 original_client->DidFinishLoading(finish_time, total_encoded_data_length,
45 total_encoded_body_length); 48 total_encoded_body_length,
49 total_decoded_body_length);
46 } 50 }
47 51
48 } // namespace blink 52 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698