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

Side by Side Diff: net/quic/quic_connection.h

Issue 694383002: Tiny refactor of QuicSentPacketManager::NetworkChangeVisitor's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_number_of_emulated_connections_78876869
Patch Set: Created 6 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 | « no previous file | net/quic/quic_connection.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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // QuicPacketGenerator::DelegateInterface 368 // QuicPacketGenerator::DelegateInterface
369 bool ShouldGeneratePacket(TransmissionType transmission_type, 369 bool ShouldGeneratePacket(TransmissionType transmission_type,
370 HasRetransmittableData retransmittable, 370 HasRetransmittableData retransmittable,
371 IsHandshake handshake) override; 371 IsHandshake handshake) override;
372 QuicAckFrame* CreateAckFrame() override; 372 QuicAckFrame* CreateAckFrame() override;
373 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override; 373 QuicCongestionFeedbackFrame* CreateFeedbackFrame() override;
374 QuicStopWaitingFrame* CreateStopWaitingFrame() override; 374 QuicStopWaitingFrame* CreateStopWaitingFrame() override;
375 void OnSerializedPacket(const SerializedPacket& packet) override; 375 void OnSerializedPacket(const SerializedPacket& packet) override;
376 376
377 // QuicSentPacketManager::NetworkChangeVisitor 377 // QuicSentPacketManager::NetworkChangeVisitor
378 void OnCongestionWindowChange(QuicByteCount congestion_window) override; 378 void OnCongestionWindowChange() override;
379 379
380 // Called by the crypto stream when the handshake completes. In the server's 380 // Called by the crypto stream when the handshake completes. In the server's
381 // case this is when the SHLO has been ACKed. Clients call this on receipt of 381 // case this is when the SHLO has been ACKed. Clients call this on receipt of
382 // the SHLO. 382 // the SHLO.
383 void OnHandshakeComplete(); 383 void OnHandshakeComplete();
384 384
385 // Accessors 385 // Accessors
386 void set_visitor(QuicConnectionVisitorInterface* visitor) { 386 void set_visitor(QuicConnectionVisitorInterface* visitor) {
387 visitor_ = visitor; 387 visitor_ = visitor;
388 } 388 }
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 // If non-empty this contains the set of versions received in a 838 // If non-empty this contains the set of versions received in a
839 // version negotiation packet. 839 // version negotiation packet.
840 QuicVersionVector server_supported_versions_; 840 QuicVersionVector server_supported_versions_;
841 841
842 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 842 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
843 }; 843 };
844 844
845 } // namespace net 845 } // namespace net
846 846
847 #endif // NET_QUIC_QUIC_CONNECTION_H_ 847 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698