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

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

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase 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 #ifndef SimNetwork_h 5 #ifndef SimNetwork_h
6 #define SimNetwork_h 6 #define SimNetwork_h
7 7
8 #include "public/platform/WebURLLoaderTestDelegate.h" 8 #include "public/platform/WebURLLoaderTestDelegate.h"
9 #include "wtf/HashMap.h" 9 #include "wtf/HashMap.h"
10 #include "wtf/text/StringHash.h" 10 #include "wtf/text/StringHash.h"
(...skipping 28 matching lines...) Expand all
39 WebURLLoader*, 39 WebURLLoader*,
40 const WebURLResponse&) override; 40 const WebURLResponse&) override;
41 void didReceiveData(WebURLLoaderClient*, 41 void didReceiveData(WebURLLoaderClient*,
42 WebURLLoader*, 42 WebURLLoader*,
43 const char* data, 43 const char* data,
44 int dataLength, 44 int dataLength,
45 int encodedDataLength) override; 45 int encodedDataLength) override;
46 void didFail(WebURLLoaderClient*, 46 void didFail(WebURLLoaderClient*,
47 WebURLLoader*, 47 WebURLLoader*,
48 const WebURLError&, 48 const WebURLError&,
49 int64_t totalEncodedDataLength) override; 49 int64_t totalEncodedDataLength,
50 int64_t totalEncodedBodyLength) override;
50 void didFinishLoading(WebURLLoaderClient*, 51 void didFinishLoading(WebURLLoaderClient*,
51 WebURLLoader*, 52 WebURLLoader*,
52 double finishTime, 53 double finishTime,
53 int64_t totalEncodedDataLength) override; 54 int64_t totalEncodedDataLength,
55 int64_t totalEncodedBodyLength) override;
54 56
55 SimRequest* m_currentRequest; 57 SimRequest* m_currentRequest;
56 HashMap<String, SimRequest*> m_requests; 58 HashMap<String, SimRequest*> m_requests;
57 }; 59 };
58 60
59 } // namespace blink 61 } // namespace blink
60 62
61 #endif 63 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698