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

Side by Side Diff: third_party/WebKit/Source/web/tests/sim/SimNetwork.h

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 7 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 #ifndef SimNetwork_h 5 #ifndef SimNetwork_h
6 #define SimNetwork_h 6 #define SimNetwork_h
7 7
8 #include "platform/wtf/HashMap.h" 8 #include "platform/wtf/HashMap.h"
9 #include "platform/wtf/text/StringHash.h" 9 #include "platform/wtf/text/StringHash.h"
10 #include "platform/wtf/text/WTFString.h" 10 #include "platform/wtf/text/WTFString.h"
(...skipping 23 matching lines...) Expand all
34 void RemoveRequest(SimRequest&); 34 void RemoveRequest(SimRequest&);
35 35
36 // WebURLLoaderTestDelegate 36 // WebURLLoaderTestDelegate
37 void DidReceiveResponse(WebURLLoaderClient*, const WebURLResponse&) override; 37 void DidReceiveResponse(WebURLLoaderClient*, const WebURLResponse&) override;
38 void DidReceiveData(WebURLLoaderClient*, 38 void DidReceiveData(WebURLLoaderClient*,
39 const char* data, 39 const char* data,
40 int data_length) override; 40 int data_length) override;
41 void DidFail(WebURLLoaderClient*, 41 void DidFail(WebURLLoaderClient*,
42 const WebURLError&, 42 const WebURLError&,
43 int64_t total_encoded_data_length, 43 int64_t total_encoded_data_length,
44 int64_t total_encoded_body_length) override; 44 int64_t total_encoded_body_length,
45 int64_t total_decoded_body_length) override;
45 void DidFinishLoading(WebURLLoaderClient*, 46 void DidFinishLoading(WebURLLoaderClient*,
46 double finish_time, 47 double finish_time,
47 int64_t total_encoded_data_length, 48 int64_t total_encoded_data_length,
48 int64_t total_encoded_body_length) override; 49 int64_t total_encoded_body_length,
50 int64_t total_decoded_body_length) override;
49 51
50 SimRequest* current_request_; 52 SimRequest* current_request_;
51 HashMap<String, SimRequest*> requests_; 53 HashMap<String, SimRequest*> requests_;
52 }; 54 };
53 55
54 } // namespace blink 56 } // namespace blink
55 57
56 #endif 58 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698