Chromium Code Reviews| Index: net/websockets/websocket_frame.h |
| diff --git a/net/websockets/websocket_frame.h b/net/websockets/websocket_frame.h |
| index bce6fa22dbf4097f8e17b52ee9544749ab19f233..057c017831926d6d1235097293263aa2f2eb1ae4 100644 |
| --- a/net/websockets/websocket_frame.h |
| +++ b/net/websockets/websocket_frame.h |
| @@ -8,11 +8,14 @@ |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "net/base/net_export.h" |
| namespace net { |
| +class IOBuffer; |
| + |
| // Represents a WebSocket frame header. |
| // |
| // Members of this class correspond to each element in WebSocket frame header |
| @@ -74,7 +77,10 @@ struct NET_EXPORT_PRIVATE WebSocketFrameChunk { |
| bool final_chunk; |
| // |data| is always unmasked even if the frame is masked. |
| - std::vector<char> data; |
| + scoped_refptr<IOBuffer> data; |
| + |
| + // |size| represents size of |data| in bytes. |
| + uint64_t size; |
|
mmenke
2012/07/26 14:44:45
Do we really need a 64-bit unsigned integer for si
Yuta Kitamura
2012/07/27 08:01:08
Agreed, at least |size| should be an int.
I think
Takashi Toyoshima
2012/07/27 10:28:43
This payload data represents a object in JavaScrip
|
| }; |
| // Contains four-byte data representing "masking key" of WebSocket frames. |