OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "net/base/net_export.h" |
14 #include "net/websockets/websocket_frame_parser.h" | 15 #include "net/websockets/websocket_frame_parser.h" |
15 #include "net/websockets/websocket_stream.h" | 16 #include "net/websockets/websocket_stream.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 class ClientSocketHandle; | 20 class ClientSocketHandle; |
20 class DrainableIOBuffer; | 21 class DrainableIOBuffer; |
21 class GrowableIOBuffer; | 22 class GrowableIOBuffer; |
22 class IOBufferWithSize; | 23 class IOBufferWithSize; |
23 struct WebSocketFrame; | 24 struct WebSocketFrame; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 // This can be overridden in tests to make the output deterministic. We don't | 160 // This can be overridden in tests to make the output deterministic. We don't |
160 // use a Callback here because a function pointer is faster and good enough | 161 // use a Callback here because a function pointer is faster and good enough |
161 // for our purposes. | 162 // for our purposes. |
162 WebSocketMaskingKeyGeneratorFunction generate_websocket_masking_key_; | 163 WebSocketMaskingKeyGeneratorFunction generate_websocket_masking_key_; |
163 }; | 164 }; |
164 | 165 |
165 } // namespace net | 166 } // namespace net |
166 | 167 |
167 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ | 168 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_STREAM_H_ |
OLD | NEW |