OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // The base class for streams which deliver data to/from an application. | 5 // The base class for streams which deliver data to/from an application. |
6 // In each direction, the data on such a stream first contains compressed | 6 // In each direction, the data on such a stream first contains compressed |
7 // headers then body data. | 7 // headers then body data. |
8 | 8 |
9 #ifndef NET_QUIC_QUIC_DATA_STREAM_H_ | 9 #ifndef NET_QUIC_QUIC_DATA_STREAM_H_ |
10 #define NET_QUIC_QUIC_DATA_STREAM_H_ | 10 #define NET_QUIC_QUIC_DATA_STREAM_H_ |
(...skipping 21 matching lines...) Expand all Loading... |
32 } // namespace test | 32 } // namespace test |
33 | 33 |
34 class IPEndPoint; | 34 class IPEndPoint; |
35 class QuicSession; | 35 class QuicSession; |
36 class SSLInfo; | 36 class SSLInfo; |
37 | 37 |
38 // All this does right now is send data to subclasses via the sequencer. | 38 // All this does right now is send data to subclasses via the sequencer. |
39 class NET_EXPORT_PRIVATE QuicDataStream : public ReliableQuicStream { | 39 class NET_EXPORT_PRIVATE QuicDataStream : public ReliableQuicStream { |
40 public: | 40 public: |
41 // Visitor receives callbacks from the stream. | 41 // Visitor receives callbacks from the stream. |
42 class Visitor { | 42 class NET_EXPORT_PRIVATE Visitor { |
43 public: | 43 public: |
44 Visitor() {} | 44 Visitor() {} |
45 | 45 |
46 // Called when the stream is closed. | 46 // Called when the stream is closed. |
47 virtual void OnClose(QuicDataStream* stream) = 0; | 47 virtual void OnClose(QuicDataStream* stream) = 0; |
48 | 48 |
49 protected: | 49 protected: |
50 virtual ~Visitor() {} | 50 virtual ~Visitor() {} |
51 | 51 |
52 private: | 52 private: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Contains a copy of the decompressed headers until they are consumed | 135 // Contains a copy of the decompressed headers until they are consumed |
136 // via ProcessData or Readv. | 136 // via ProcessData or Readv. |
137 std::string decompressed_headers_; | 137 std::string decompressed_headers_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); | 139 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace net | 142 } // namespace net |
143 | 143 |
144 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ | 144 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ |
OLD | NEW |