| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/spdy/spdy_buffer_producer.h" | 5 #include "net/spdy/spdy_buffer_producer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/spdy/spdy_buffer.h" | 8 #include "net/spdy/spdy_buffer.h" |
| 9 #include "net/spdy/spdy_protocol.h" | 9 #include "net/spdy/spdy_protocol.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 SpdyBufferProducer::SpdyBufferProducer() {} | 13 SpdyBufferProducer::SpdyBufferProducer() { |
| 14 } |
| 14 | 15 |
| 15 SpdyBufferProducer::~SpdyBufferProducer() {} | 16 SpdyBufferProducer::~SpdyBufferProducer() { |
| 17 } |
| 16 | 18 |
| 17 SimpleBufferProducer::SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer) | 19 SimpleBufferProducer::SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer) |
| 18 : buffer_(buffer.Pass()) {} | 20 : buffer_(buffer.Pass()) { |
| 21 } |
| 19 | 22 |
| 20 SimpleBufferProducer::~SimpleBufferProducer() {} | 23 SimpleBufferProducer::~SimpleBufferProducer() { |
| 24 } |
| 21 | 25 |
| 22 scoped_ptr<SpdyBuffer> SimpleBufferProducer::ProduceBuffer() { | 26 scoped_ptr<SpdyBuffer> SimpleBufferProducer::ProduceBuffer() { |
| 23 DCHECK(buffer_); | 27 DCHECK(buffer_); |
| 24 return buffer_.Pass(); | 28 return buffer_.Pass(); |
| 25 } | 29 } |
| 26 | 30 |
| 27 } // namespace net | 31 } // namespace net |
| OLD | NEW |