| 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 CONTENT_BROWSER_STREAMS_STREAM_H_ | 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_H_ |
| 6 #define CONTENT_BROWSER_STREAMS_STREAM_H_ | 6 #define CONTENT_BROWSER_STREAMS_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" |
| 10 #include "content/browser/download/byte_stream.h" | 11 #include "content/browser/download/byte_stream.h" |
| 11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 class IOBuffer; | 16 class IOBuffer; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 scoped_refptr<net::IOBuffer> data_; | 85 scoped_refptr<net::IOBuffer> data_; |
| 85 size_t data_length_; | 86 size_t data_length_; |
| 86 | 87 |
| 87 scoped_ptr<ByteStreamWriter> writer_; | 88 scoped_ptr<ByteStreamWriter> writer_; |
| 88 scoped_ptr<ByteStreamReader> reader_; | 89 scoped_ptr<ByteStreamReader> reader_; |
| 89 | 90 |
| 90 StreamRegistry* registry_; | 91 StreamRegistry* registry_; |
| 91 StreamReadObserver* read_observer_; | 92 StreamReadObserver* read_observer_; |
| 92 StreamWriteObserver* write_observer_; | 93 StreamWriteObserver* write_observer_; |
| 93 | 94 |
| 95 base::WeakPtrFactory<Stream> weak_ptr_factory_; |
| 94 DISALLOW_COPY_AND_ASSIGN(Stream); | 96 DISALLOW_COPY_AND_ASSIGN(Stream); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace content | 99 } // namespace content |
| 98 | 100 |
| 99 #endif // CONTENT_BROWSER_STREAMS_STREAM_H_ | 101 #endif // CONTENT_BROWSER_STREAMS_STREAM_H_ |
| OLD | NEW |