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

Side by Side Diff: net/quic/core/frames/quic_frame.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 months 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/crypto/strike_register.cc ('k') | net/quic/core/frames/quic_stream_frame.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/frames/quic_frame.h" 5 #include "net/quic/core/frames/quic_frame.h"
6 #include "net/quic/platform/api/quic_logging.h"
6 7
7 using base::StringPiece; 8 using base::StringPiece;
8 using std::string; 9 using std::string;
9 10
10 namespace net { 11 namespace net {
11 12
12 QuicFrame::QuicFrame() {} 13 QuicFrame::QuicFrame() {}
13 14
14 QuicFrame::QuicFrame(QuicPaddingFrame padding_frame) 15 QuicFrame::QuicFrame(QuicPaddingFrame padding_frame)
15 : type(PADDING_FRAME), padding_frame(padding_frame) {} 16 : type(PADDING_FRAME), padding_frame(padding_frame) {}
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 146 }
146 case MTU_DISCOVERY_FRAME: { 147 case MTU_DISCOVERY_FRAME: {
147 os << "type { MTU_DISCOVERY_FRAME } "; 148 os << "type { MTU_DISCOVERY_FRAME } ";
148 break; 149 break;
149 } 150 }
150 case PATH_CLOSE_FRAME: { 151 case PATH_CLOSE_FRAME: {
151 os << "type { PATH_CLOSE_FRAME } " << *(frame.path_close_frame); 152 os << "type { PATH_CLOSE_FRAME } " << *(frame.path_close_frame);
152 break; 153 break;
153 } 154 }
154 default: { 155 default: {
155 LOG(ERROR) << "Unknown frame type: " << frame.type; 156 QUIC_LOG(ERROR) << "Unknown frame type: " << frame.type;
156 break; 157 break;
157 } 158 }
158 } 159 }
159 return os; 160 return os;
160 } 161 }
161 162
162 } // namespace net 163 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/strike_register.cc ('k') | net/quic/core/frames/quic_stream_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698