Home | History | Annotate | Download | only in spdy
      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.
      4 
      5 #include "net/spdy/spdy_buffer_producer.h"
      6 
      7 #include "base/logging.h"
      8 #include "net/spdy/spdy_buffer.h"
      9 #include "net/spdy/spdy_protocol.h"
     10 
     11 namespace net {
     12 
     13 SpdyBufferProducer::SpdyBufferProducer() {}
     14 
     15 SpdyBufferProducer::~SpdyBufferProducer() {}
     16 
     17 SimpleBufferProducer::SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer)
     18     : buffer_(buffer.Pass()) {}
     19 
     20 SimpleBufferProducer::~SimpleBufferProducer() {}
     21 
     22 scoped_ptr<SpdyBuffer> SimpleBufferProducer::ProduceBuffer() {
     23   DCHECK(buffer_);
     24   return buffer_.Pass();
     25 }
     26 
     27 }  // namespace net
     28