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

Side by Side Diff: net/quic/quic_protocol.cc

Issue 421963006: Add case for PING frame in QuicFrame <<. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_methods_to_QuicConnectionDebug_visitor_71871881
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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/quic_protocol.h" 5 #include "net/quic/quic_protocol.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/quic_utils.h" 8 #include "net/quic/quic_utils.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 436 }
437 case CONGESTION_FEEDBACK_FRAME: { 437 case CONGESTION_FEEDBACK_FRAME: {
438 os << "type { CONGESTION_FEEDBACK_FRAME } " 438 os << "type { CONGESTION_FEEDBACK_FRAME } "
439 << *(frame.congestion_feedback_frame); 439 << *(frame.congestion_feedback_frame);
440 break; 440 break;
441 } 441 }
442 case STOP_WAITING_FRAME: { 442 case STOP_WAITING_FRAME: {
443 os << "type { STOP_WAITING_FRAME } " << *(frame.stop_waiting_frame); 443 os << "type { STOP_WAITING_FRAME } " << *(frame.stop_waiting_frame);
444 break; 444 break;
445 } 445 }
446 case PING_FRAME: {
447 os << "type { PING_FRAME } ";
448 break;
449 }
446 default: { 450 default: {
447 LOG(ERROR) << "Unknown frame type: " << frame.type; 451 LOG(ERROR) << "Unknown frame type: " << frame.type;
448 break; 452 break;
449 } 453 }
450 } 454 }
451 return os; 455 return os;
452 } 456 }
453 457
454 ostream& operator<<(ostream& os, const QuicRstStreamFrame& rst_frame) { 458 ostream& operator<<(ostream& os, const QuicRstStreamFrame& rst_frame) {
455 os << "stream_id { " << rst_frame.stream_id << " } " 459 os << "stream_id { " << rst_frame.stream_id << " } "
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 sent_time(QuicTime::Zero()), 762 sent_time(QuicTime::Zero()),
759 bytes_sent(0), 763 bytes_sent(0),
760 nack_count(0), 764 nack_count(0),
761 transmission_type(transmission_type), 765 transmission_type(transmission_type),
762 all_transmissions(all_transmissions), 766 all_transmissions(all_transmissions),
763 in_flight(false) { 767 in_flight(false) {
764 all_transmissions->insert(sequence_number); 768 all_transmissions->insert(sequence_number);
765 } 769 }
766 770
767 } // namespace net 771 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698