Index: net/spdy/spdy_frame_producer.cc |
diff --git a/net/spdy/spdy_frame_producer.cc b/net/spdy/spdy_frame_producer.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc1674473fe9fa7e2ddabf8369eaaafe25001b1a |
--- /dev/null |
+++ b/net/spdy/spdy_frame_producer.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/spdy/spdy_frame_producer.h" |
+ |
+#include "base/logging.h" |
+#include "net/spdy/spdy_protocol.h" |
+ |
+namespace net { |
+ |
+SpdyFrameProducer::SpdyFrameProducer() {} |
+ |
+SpdyFrameProducer::~SpdyFrameProducer() {} |
+ |
+SimpleFrameProducer::SimpleFrameProducer(scoped_ptr<SpdyFrame> frame) |
+ : frame_(frame.Pass()) {} |
+ |
+SimpleFrameProducer::~SimpleFrameProducer() {} |
+ |
+scoped_ptr<SpdyFrame> SimpleFrameProducer::ProduceFrame() { |
+ DCHECK(frame_); |
+ return frame_.Pass(); |
+} |
+ |
+} // namespace net |