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_framer.h" | 5 #include "net/quic/core/quic_framer.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 bool QuicFramer::AppendPathCloseFrame(const QuicPathCloseFrame& frame, | 2177 bool QuicFramer::AppendPathCloseFrame(const QuicPathCloseFrame& frame, |
2178 QuicDataWriter* writer) { | 2178 QuicDataWriter* writer) { |
2179 uint8_t path_id = static_cast<uint8_t>(frame.path_id); | 2179 uint8_t path_id = static_cast<uint8_t>(frame.path_id); |
2180 if (!writer->WriteUInt8(path_id)) { | 2180 if (!writer->WriteUInt8(path_id)) { |
2181 return false; | 2181 return false; |
2182 } | 2182 } |
2183 return true; | 2183 return true; |
2184 } | 2184 } |
2185 | 2185 |
2186 bool QuicFramer::RaiseError(QuicErrorCode error) { | 2186 bool QuicFramer::RaiseError(QuicErrorCode error) { |
2187 DVLOG(1) << "Error: " << QuicUtils::ErrorToString(error) | 2187 DVLOG(1) << "Error: " << QuicErrorCodeToString(error) |
2188 << " detail: " << detailed_error_; | 2188 << " detail: " << detailed_error_; |
2189 set_error(error); | 2189 set_error(error); |
2190 visitor_->OnError(this); | 2190 visitor_->OnError(this); |
2191 return false; | 2191 return false; |
2192 } | 2192 } |
2193 | 2193 |
2194 } // namespace net | 2194 } // namespace net |
OLD | NEW |