Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: net/quic/core/quic_framer.cc

Issue 2517513004: Move QUIC error code utility methods to quic_error_codes.{h,cc}, and rename them slightly. No beha… (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_error_codes_test.cc ('k') | net/quic/core/quic_framer_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_error_codes_test.cc ('k') | net/quic/core/quic_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698