1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/spdy/spdy_buffer_producer.h"
7 #include "base/logging.h"
8 #include "net/spdy/spdy_buffer.h"
9 #include "net/spdy/spdy_protocol.h"
13 SpdyBufferProducer::SpdyBufferProducer() {}
15 SpdyBufferProducer::~SpdyBufferProducer() {}
17 SimpleBufferProducer::SimpleBufferProducer(scoped_ptr
<SpdyBuffer
> buffer
)
18 : buffer_(buffer
.Pass()) {}
20 SimpleBufferProducer::~SimpleBufferProducer() {}
22 scoped_ptr
<SpdyBuffer
> SimpleBufferProducer::ProduceBuffer() {
24 return buffer_
.Pass();