| 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 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ | 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Returns true if the session is still connected. | 68 // Returns true if the session is still connected. |
| 69 bool IsConnected(); | 69 bool IsConnected(); |
| 70 | 70 |
| 71 QuicSpdySession* spdy_session_; | 71 QuicSpdySession* spdy_session_; |
| 72 | 72 |
| 73 // Data about the stream whose headers are being processed. | 73 // Data about the stream whose headers are being processed. |
| 74 QuicStreamId stream_id_; | 74 QuicStreamId stream_id_; |
| 75 bool fin_; | 75 bool fin_; |
| 76 size_t frame_len_; | 76 size_t frame_len_; |
| 77 | 77 |
| 78 // Helper variable that caches the corresponding feature flag. |
| 79 bool measure_headers_hol_blocking_time_; |
| 80 |
| 81 // Timestamps used to measure HOL blocking, these are recorded by |
| 82 // the sequencer approximate to the time of arrival off the wire. |
| 83 // |cur_max_timestamp_| tracks the most recent arrival time of |
| 84 // frames for current (at the headers stream level) processed |
| 85 // stream's headers, and |prev_max_timestamp_| tracks the most |
| 86 // recent arrival time of lower numbered streams. |
| 87 QuicTime cur_max_timestamp_; |
| 88 QuicTime prev_max_timestamp_; |
| 89 |
| 78 SpdyFramer spdy_framer_; | 90 SpdyFramer spdy_framer_; |
| 79 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 91 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 80 | 92 |
| 81 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 93 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 82 }; | 94 }; |
| 83 | 95 |
| 84 } // namespace net | 96 } // namespace net |
| 85 | 97 |
| 86 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 98 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |