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 SimRequest_h | 5 #ifndef SimRequest_h |
6 #define SimRequest_h | 6 #define SimRequest_h |
7 | 7 |
| 8 #include "platform/wtf/text/WTFString.h" |
8 #include "public/platform/WebURLError.h" | 9 #include "public/platform/WebURLError.h" |
9 #include "public/platform/WebURLResponse.h" | 10 #include "public/platform/WebURLResponse.h" |
10 #include "wtf/text/WTFString.h" | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class SimNetwork; | 14 class SimNetwork; |
15 class WebURLLoader; | 15 class WebURLLoader; |
16 class WebURLLoaderClient; | 16 class WebURLLoaderClient; |
17 | 17 |
18 // Simulates a single request for a resource from the server. Requires a | 18 // Simulates a single request for a resource from the server. Requires a |
19 // SimNetwork to have been created first. Use the start(), write() and finish() | 19 // SimNetwork to have been created first. Use the start(), write() and finish() |
20 // methods to simulate the response from the server. Note that all started | 20 // methods to simulate the response from the server. Note that all started |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 WebURLResponse m_response; | 56 WebURLResponse m_response; |
57 WebURLError m_error; | 57 WebURLError m_error; |
58 WebURLLoaderClient* m_client; | 58 WebURLLoaderClient* m_client; |
59 unsigned m_totalEncodedDataLength; | 59 unsigned m_totalEncodedDataLength; |
60 bool m_isReady; | 60 bool m_isReady; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace blink | 63 } // namespace blink |
64 | 64 |
65 #endif | 65 #endif |
OLD | NEW |