| // Copyright (c) 2012 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" |
| uint64 SpdyIOBuffer::order_ = 0; |
| SpdyIOBuffer::SpdyIOBuffer( |
| IOBuffer* buffer, int size, RequestPriority priority, SpdyStream* stream) |
| : buffer_(new DrainableIOBuffer(buffer, size)), |
| SpdyIOBuffer::SpdyIOBuffer() : priority_(HIGHEST), position_(0), stream_(NULL) { |
| SpdyIOBuffer::SpdyIOBuffer(const SpdyIOBuffer& rhs) { |
| priority_ = rhs.priority_; |
| position_ = rhs.position_; |
| SpdyIOBuffer::~SpdyIOBuffer() {} |
| SpdyIOBuffer& SpdyIOBuffer::operator=(const SpdyIOBuffer& rhs) { |
| priority_ = rhs.priority_; |
| position_ = rhs.position_; |
| void SpdyIOBuffer::release() { |