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

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

Issue 123303003: Move all the packet parsing logic into QuicDispatcher from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // From QuicFramerVisitorInterface 272 // From QuicFramerVisitorInterface
273 virtual void OnError(QuicFramer* framer) OVERRIDE; 273 virtual void OnError(QuicFramer* framer) OVERRIDE;
274 virtual bool OnProtocolVersionMismatch(QuicVersion received_version) OVERRIDE; 274 virtual bool OnProtocolVersionMismatch(QuicVersion received_version) OVERRIDE;
275 virtual void OnPacket() OVERRIDE; 275 virtual void OnPacket() OVERRIDE;
276 virtual void OnPublicResetPacket( 276 virtual void OnPublicResetPacket(
277 const QuicPublicResetPacket& packet) OVERRIDE; 277 const QuicPublicResetPacket& packet) OVERRIDE;
278 virtual void OnVersionNegotiationPacket( 278 virtual void OnVersionNegotiationPacket(
279 const QuicVersionNegotiationPacket& packet) OVERRIDE; 279 const QuicVersionNegotiationPacket& packet) OVERRIDE;
280 virtual void OnRevivedPacket() OVERRIDE; 280 virtual void OnRevivedPacket() OVERRIDE;
281 virtual bool OnUnauthenticatedPublicHeader(
282 const QuicPacketPublicHeader& header) OVERRIDE;
281 virtual bool OnUnauthenticatedHeader(const QuicPacketHeader& header) OVERRIDE; 283 virtual bool OnUnauthenticatedHeader(const QuicPacketHeader& header) OVERRIDE;
282 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; 284 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE;
283 virtual void OnFecProtectedPayload(base::StringPiece payload) OVERRIDE; 285 virtual void OnFecProtectedPayload(base::StringPiece payload) OVERRIDE;
284 virtual bool OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; 286 virtual bool OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE;
285 virtual bool OnAckFrame(const QuicAckFrame& frame) OVERRIDE; 287 virtual bool OnAckFrame(const QuicAckFrame& frame) OVERRIDE;
286 virtual bool OnCongestionFeedbackFrame( 288 virtual bool OnCongestionFeedbackFrame(
287 const QuicCongestionFeedbackFrame& frame) OVERRIDE; 289 const QuicCongestionFeedbackFrame& frame) OVERRIDE;
288 virtual bool OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; 290 virtual bool OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE;
289 virtual bool OnConnectionCloseFrame( 291 virtual bool OnConnectionCloseFrame(
290 const QuicConnectionCloseFrame& frame) OVERRIDE; 292 const QuicConnectionCloseFrame& frame) OVERRIDE;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 // If non-empty this contains the set of versions received in a 718 // If non-empty this contains the set of versions received in a
717 // version negotiation packet. 719 // version negotiation packet.
718 QuicVersionVector server_supported_versions_; 720 QuicVersionVector server_supported_versions_;
719 721
720 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 722 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
721 }; 723 };
722 724
723 } // namespace net 725 } // namespace net
724 726
725 #endif // NET_QUIC_QUIC_CONNECTION_H_ 727 #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