OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SPDY_SPDY_BUFFER_PRODUCER_H_ | 5 #ifndef NET_SPDY_SPDY_BUFFER_PRODUCER_H_ |
6 #define NET_SPDY_SPDY_BUFFER_PRODUCER_H_ | 6 #define NET_SPDY_SPDY_BUFFER_PRODUCER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 DISALLOW_COPY_AND_ASSIGN(SpdyBufferProducer); | 30 DISALLOW_COPY_AND_ASSIGN(SpdyBufferProducer); |
31 }; | 31 }; |
32 | 32 |
33 // A simple wrapper around a single SpdyBuffer. | 33 // A simple wrapper around a single SpdyBuffer. |
34 class NET_EXPORT_PRIVATE SimpleBufferProducer : public SpdyBufferProducer { | 34 class NET_EXPORT_PRIVATE SimpleBufferProducer : public SpdyBufferProducer { |
35 public: | 35 public: |
36 explicit SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer); | 36 explicit SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer); |
37 | 37 |
38 virtual ~SimpleBufferProducer(); | 38 virtual ~SimpleBufferProducer(); |
39 | 39 |
40 virtual scoped_ptr<SpdyBuffer> ProduceBuffer() OVERRIDE; | 40 virtual scoped_ptr<SpdyBuffer> ProduceBuffer() override; |
41 | 41 |
42 private: | 42 private: |
43 scoped_ptr<SpdyBuffer> buffer_; | 43 scoped_ptr<SpdyBuffer> buffer_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(SimpleBufferProducer); | 45 DISALLOW_COPY_AND_ASSIGN(SimpleBufferProducer); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace net | 48 } // namespace net |
49 | 49 |
50 #endif // NET_SPDY_SPDY_BUFFER_PRODUCER_H_ | 50 #endif // NET_SPDY_SPDY_BUFFER_PRODUCER_H_ |
OLD | NEW |