summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_frame.cc
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 08:31:29 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 08:31:29 +0000
commit8308b1d12eb84a57650f4e6aa6068b7e4864aa9b (patch)
tree66a76c5a80f9b6e87b586883de9d36b8f1d83220 /net/websockets/websocket_frame.cc
parent9011a08ec4f6e25ef724a505be5163eb0fd1423d (diff)
downloadchromium_src-8308b1d12eb84a57650f4e6aa6068b7e4864aa9b.zip
chromium_src-8308b1d12eb84a57650f4e6aa6068b7e4864aa9b.tar.gz
chromium_src-8308b1d12eb84a57650f4e6aa6068b7e4864aa9b.tar.bz2
Now WebSocketFrameChunk use std::vector<char> to hold payload data.
But, SpdyStream and StreamSocket use IOBuffer in their interfaces. To reduce memory copies, we should use IOBuffer to hold data. BUG=none TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10796107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets/websocket_frame.cc')
-rw-r--r--net/websockets/websocket_frame.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/websockets/websocket_frame.cc b/net/websockets/websocket_frame.cc
index 25699e8..da65cba 100644
--- a/net/websockets/websocket_frame.cc
+++ b/net/websockets/websocket_frame.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/rand_util.h"
#include "net/base/big_endian.h"
+#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
namespace {