| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/core/quic_session.h" | 5 #include "net/quic/core/quic_session.h" |
| 6 | 6 |
| 7 #include <cstdint> | 7 #include <cstdint> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "net/quic/core/quic_connection.h" | 10 #include "net/quic/core/quic_connection.h" |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 QuicStream* stream = GetStream(id); | 961 QuicStream* stream = GetStream(id); |
| 962 if (stream == nullptr) { | 962 if (stream == nullptr) { |
| 963 // This causes the connection to be closed because of failed to serialize | 963 // This causes the connection to be closed because of failed to serialize |
| 964 // packet. | 964 // packet. |
| 965 QUIC_BUG << "Stream " << id << " does not exist when trying to write data."; | 965 QUIC_BUG << "Stream " << id << " does not exist when trying to write data."; |
| 966 return false; | 966 return false; |
| 967 } | 967 } |
| 968 return stream->WriteStreamData(offset, data_length, writer); | 968 return stream->WriteStreamData(offset, data_length, writer); |
| 969 } | 969 } |
| 970 | 970 |
| 971 #undef ENDPOINT |
| 972 |
| 971 } // namespace net | 973 } // namespace net |
| OLD | NEW |