| 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_ |
| 11 | 11 |
| 12 #include <sys/types.h> | 12 #include <sys/types.h> |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <string> |
| 15 | 16 |
| 16 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 17 #include "base/strings/string_piece.h" | 18 #include "base/strings/string_piece.h" |
| 18 #include "net/base/iovec.h" | 19 #include "net/base/iovec.h" |
| 19 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
| 20 #include "net/quic/quic_ack_notifier.h" | 21 #include "net/quic/quic_ack_notifier.h" |
| 21 #include "net/quic/quic_protocol.h" | 22 #include "net/quic/quic_protocol.h" |
| 22 #include "net/quic/quic_stream_sequencer.h" | 23 #include "net/quic/quic_stream_sequencer.h" |
| 23 #include "net/quic/reliable_quic_stream.h" | 24 #include "net/quic/reliable_quic_stream.h" |
| 24 #include "net/spdy/spdy_framer.h" | 25 #include "net/spdy/spdy_framer.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 bool FinishedReadingHeaders(); | 128 bool FinishedReadingHeaders(); |
| 128 | 129 |
| 129 Visitor* visitor_; | 130 Visitor* visitor_; |
| 130 // True if the headers have been completely decompresssed. | 131 // True if the headers have been completely decompresssed. |
| 131 bool headers_decompressed_; | 132 bool headers_decompressed_; |
| 132 // The priority of the stream, once parsed. | 133 // The priority of the stream, once parsed. |
| 133 QuicPriority priority_; | 134 QuicPriority priority_; |
| 134 // Contains a copy of the decompressed headers until they are consumed | 135 // Contains a copy of the decompressed headers until they are consumed |
| 135 // via ProcessData or Readv. | 136 // via ProcessData or Readv. |
| 136 string decompressed_headers_; | 137 std::string decompressed_headers_; |
| 137 // True if an error was encountered during decompression. | 138 // True if an error was encountered during decompression. |
| 138 bool decompression_failed_; | 139 bool decompression_failed_; |
| 139 // True if the priority has been read, false otherwise. | 140 // True if the priority has been read, false otherwise. |
| 140 bool priority_parsed_; | 141 bool priority_parsed_; |
| 141 | 142 |
| 142 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); | 143 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace net | 146 } // namespace net |
| 146 | 147 |
| 147 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ | 148 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ |
| OLD | NEW |