| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |