OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FRAME_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_FRAME_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_FRAME_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_FRAME_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 class IOBuffer; | 19 class IOBuffer; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // used for unmasking a WebSocket frame. | 188 // used for unmasking a WebSocket frame. |
188 NET_EXPORT void MaskWebSocketFramePayload( | 189 NET_EXPORT void MaskWebSocketFramePayload( |
189 const WebSocketMaskingKey& masking_key, | 190 const WebSocketMaskingKey& masking_key, |
190 uint64_t frame_offset, | 191 uint64_t frame_offset, |
191 char* data, | 192 char* data, |
192 int data_size); | 193 int data_size); |
193 | 194 |
194 } // namespace net | 195 } // namespace net |
195 | 196 |
196 #endif // NET_WEBSOCKETS_WEBSOCKET_FRAME_H_ | 197 #endif // NET_WEBSOCKETS_WEBSOCKET_FRAME_H_ |
OLD | NEW |