OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_ | |
6 #define NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_ | |
7 #pragma once | |
8 | |
9 #include "net/base/request_priority.h" | |
10 #include "net/spdy/spdy_protocol.h" | |
11 | |
12 namespace net { | |
13 | |
14 // Construct a WebSocket over SPDY handshake request packet. | |
15 spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeRequestFrame( | |
16 const char* const headers[], | |
17 int header_count, | |
18 spdy::SpdyStreamId stream_id, | |
19 RequestPriority request_priority); | |
20 | |
21 // Construct a WebSocket over SPDY handshake response packet. | |
22 spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeResponseFrame( | |
23 const char* const headers[], | |
24 int header_count, | |
25 spdy::SpdyStreamId stream_id, | |
26 RequestPriority request_priority); | |
27 | |
28 // Construct a WebSocket over SPDY data packet. | |
29 spdy::SpdyFrame* ConstructSpdyWebSocketDataFrame( | |
30 const char* data, | |
31 int len, | |
32 spdy::SpdyStreamId stream_id, | |
33 bool fin); | |
34 | |
35 } // namespace net | |
36 | |
37 #endif // NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_ | |
OLD | NEW |