#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;
class NET_EXPORT_PRIVATE SpdyBufferProducer {
public:
SpdyBufferProducer();
virtual scoped_ptr<SpdyBuffer> ProduceBuffer() = 0;
virtual ~SpdyBufferProducer();
private:
DISALLOW_COPY_AND_ASSIGN(SpdyBufferProducer);
};
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);
};
}
#endif