| 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_spdy_stream.h" | 5 #include "net/quic/quic_spdy_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/quic_spdy_session.h" | 8 #include "net/quic/quic_spdy_session.h" |
| 9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
| 10 #include "net/quic/quic_write_blocked_list.h" | 10 #include "net/quic/quic_write_blocked_list.h" |
| 11 | 11 |
| 12 using base::StringPiece; | 12 using base::StringPiece; |
| 13 using std::min; | 13 using std::min; |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 #define ENDPOINT \ | |
| 18 (session()->perspective() == Perspective::IS_SERVER ? "Server: " : "Client:" \ | |
| 19 " ") | |
| 20 | |
| 21 namespace { | 17 namespace { |
| 22 | 18 |
| 23 // This is somewhat arbitrary. It's possible, but unlikely, we will either fail | 19 // This is somewhat arbitrary. It's possible, but unlikely, we will either fail |
| 24 // to set a priority client-side, or cancel a stream before stripping the | 20 // to set a priority client-side, or cancel a stream before stripping the |
| 25 // priority from the wire server-side. In either case, start out with a | 21 // priority from the wire server-side. In either case, start out with a |
| 26 // priority in the middle. | 22 // priority in the middle. |
| 27 QuicPriority kDefaultPriority = 3; | 23 QuicPriority kDefaultPriority = 3; |
| 28 | 24 |
| 29 } // namespace | 25 } // namespace |
| 30 | 26 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 visitor_ = nullptr; | 123 visitor_ = nullptr; |
| 128 visitor->OnClose(this); | 124 visitor->OnClose(this); |
| 129 } | 125 } |
| 130 } | 126 } |
| 131 | 127 |
| 132 bool QuicSpdyStream::FinishedReadingHeaders() const { | 128 bool QuicSpdyStream::FinishedReadingHeaders() const { |
| 133 return headers_decompressed_ && decompressed_headers_.empty(); | 129 return headers_decompressed_ && decompressed_headers_.empty(); |
| 134 } | 130 } |
| 135 | 131 |
| 136 } // namespace net | 132 } // namespace net |
| OLD | NEW |