| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // WebURLLoaderTestDelegate | 37 // WebURLLoaderTestDelegate |
| 38 void didReceiveResponse(WebURLLoaderClient*, | 38 void didReceiveResponse(WebURLLoaderClient*, |
| 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*, WebURLLoader*, const WebURLError&) override; | 46 void didFail(WebURLLoaderClient*, |
| 47 WebURLLoader*, |
| 48 const WebURLError&, |
| 49 int64_t totalEncodedDataLength) override; |
| 47 void didFinishLoading(WebURLLoaderClient*, | 50 void didFinishLoading(WebURLLoaderClient*, |
| 48 WebURLLoader*, | 51 WebURLLoader*, |
| 49 double finishTime, | 52 double finishTime, |
| 50 int64_t totalEncodedDataLength) override; | 53 int64_t totalEncodedDataLength) override; |
| 51 | 54 |
| 52 SimRequest* m_currentRequest; | 55 SimRequest* m_currentRequest; |
| 53 HashMap<String, SimRequest*> m_requests; | 56 HashMap<String, SimRequest*> m_requests; |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } // namespace blink | 59 } // namespace blink |
| 57 | 60 |
| 58 #endif | 61 #endif |
| OLD | NEW |