Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: trunk/src/net/spdy/spdy_buffer_producer.h

Issue 13996009: Revert 194560 "[SPDY] Replace SpdyIOBuffer with new SpdyBuffer c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/net/spdy/spdy_buffer.cc ('k') | trunk/src/net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/spdy/spdy_buffer_producer.h
===================================================================
--- trunk/src/net/spdy/spdy_buffer_producer.h (revision 194561)
+++ trunk/src/net/spdy/spdy_buffer_producer.h (working copy)
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef NET_SPDY_SPDY_BUFFER_PRODUCER_H_
-#define NET_SPDY_SPDY_BUFFER_PRODUCER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-class SpdyBuffer;
-
-// An object which provides a SpdyBuffer for writing. We pass these
-// around instead of SpdyBuffers since some buffers have to be
-// generated "just in time".
-class NET_EXPORT_PRIVATE SpdyBufferProducer {
- public:
- SpdyBufferProducer();
-
- // Produces the buffer to be written. Will be called at most once.
- virtual scoped_ptr<SpdyBuffer> ProduceBuffer() = 0;
-
- virtual ~SpdyBufferProducer();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SpdyBufferProducer);
-};
-
-// A simple wrapper around a single SpdyBuffer.
-class NET_EXPORT_PRIVATE SimpleBufferProducer : public SpdyBufferProducer {
- public:
- explicit SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer);
-
- virtual ~SimpleBufferProducer();
-
- virtual scoped_ptr<SpdyBuffer> ProduceBuffer() OVERRIDE;
-
- private:
- scoped_ptr<SpdyBuffer> buffer_;
-
- DISALLOW_COPY_AND_ASSIGN(SimpleBufferProducer);
-};
-
-} // namespace net
-
-#endif // NET_SPDY_SPDY_BUFFER_PRODUCER_H_
« no previous file with comments | « trunk/src/net/spdy/spdy_buffer.cc ('k') | trunk/src/net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698