summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/websockets/websocket_frame.h')
-rw-r--r--net/websockets/websocket_frame.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/websockets/websocket_frame.h b/net/websockets/websocket_frame.h
index bce6fa2..9f7c7fd 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 IOBufferWithSize;
+
// Represents a WebSocket frame header.
//
// Members of this class correspond to each element in WebSocket frame header
@@ -73,8 +76,9 @@ struct NET_EXPORT_PRIVATE WebSocketFrameChunk {
// Indicates this part is the last chunk of a frame.
bool final_chunk;
- // |data| is always unmasked even if the frame is masked.
- std::vector<char> data;
+ // |data| is always unmasked even if the frame is masked. |data| might be
+ // null in the first chunk.
+ scoped_refptr<IOBufferWithSize> data;
};
// Contains four-byte data representing "masking key" of WebSocket frames.