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 #include "net/quic/quic_headers_stream.h" | 5 #include "net/quic/quic_headers_stream.h" |
6 | 6 |
7 #include "net/quic/quic_session.h" | 7 #include "net/quic/quic_session.h" |
8 | 8 |
9 using base::StringPiece; | 9 using base::StringPiece; |
| 10 using std::string; |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 const QuicStreamId kInvalidStreamId = 0; | 16 const QuicStreamId kInvalidStreamId = 0; |
16 | 17 |
17 } // namespace | 18 } // namespace |
18 | 19 |
19 // A SpdyFramer visitor which passed SYN_STREAM and SYN_REPLY frames to | 20 // A SpdyFramer visitor which passed SYN_STREAM and SYN_REPLY frames to |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 DCHECK_EQ(kInvalidStreamId, stream_id_); | 270 DCHECK_EQ(kInvalidStreamId, stream_id_); |
270 DCHECK_EQ(0u, frame_len_); | 271 DCHECK_EQ(0u, frame_len_); |
271 frame_len_ = frame_len; | 272 frame_len_ = frame_len; |
272 } | 273 } |
273 | 274 |
274 bool QuicHeadersStream::IsConnected() { | 275 bool QuicHeadersStream::IsConnected() { |
275 return session()->connection()->connected(); | 276 return session()->connection()->connected(); |
276 } | 277 } |
277 | 278 |
278 } // namespace net | 279 } // namespace net |
OLD | NEW |