Add more WeakPtr checks for SurfaceFactory in SurfaceAggregator.
[chromium-blink-merge.git] / net / spdy / spdy_buffer_producer.cc
blob3a9598c859f155eec01c6b927b41d9857e87d244
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"
11 namespace net {
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() {
23 DCHECK(buffer_);
24 return buffer_.Pass();
27 } // namespace net