OLD | NEW |
(Empty) | |
| 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_frame_producer.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "net/spdy/spdy_protocol.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 SpdyFrameProducer::SpdyFrameProducer() {} |
| 13 |
| 14 SpdyFrameProducer::~SpdyFrameProducer() {} |
| 15 |
| 16 SimpleFrameProducer::SimpleFrameProducer(scoped_ptr<SpdyFrame> frame) |
| 17 : frame_(frame.Pass()) {} |
| 18 |
| 19 SimpleFrameProducer::~SimpleFrameProducer() {} |
| 20 |
| 21 scoped_ptr<SpdyFrame> SimpleFrameProducer::ProduceFrame() { |
| 22 DCHECK(frame_); |
| 23 return frame_.Pass(); |
| 24 } |
| 25 |
| 26 } // namespace net |
OLD | NEW |