summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_io_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy/spdy_io_buffer.cc')
-rw-r--r--net/spdy/spdy_io_buffer.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/spdy/spdy_io_buffer.cc b/net/spdy/spdy_io_buffer.cc
new file mode 100644
index 0000000..d26e4c3
--- /dev/null
+++ b/net/spdy/spdy_io_buffer.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/spdy/spdy_io_buffer.h"
+#include "net/spdy/spdy_stream.h"
+
+namespace net {
+
+// static
+uint64 FlipIOBuffer::order_ = 0;
+
+FlipIOBuffer::FlipIOBuffer(
+ IOBuffer* buffer, int size, int priority, FlipStream* stream)
+ : buffer_(new DrainableIOBuffer(buffer, size)),
+ priority_(priority),
+ position_(++order_),
+ stream_(stream) {}
+
+FlipIOBuffer::FlipIOBuffer() : priority_(0), position_(0), stream_(NULL) {}
+
+FlipIOBuffer::~FlipIOBuffer() {}
+
+void FlipIOBuffer::release() {
+ buffer_ = NULL;
+ stream_ = NULL;
+}
+
+} // namespace net