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

Side by Side Diff: net/tools/quic/quic_dispatcher.h

Issue 1782143003: Remove FEC code from receive path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115997404
Patch Set: Created 4 years, 9 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/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.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 // A server side dispatcher which dispatches a given client's data to their 5 // A server side dispatcher which dispatches a given client's data to their
6 // stream. 6 // stream.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // The following methods should never get called because 124 // The following methods should never get called because
125 // OnUnauthenticatedPublicHeader() or OnUnauthenticatedHeader() (whichever 125 // OnUnauthenticatedPublicHeader() or OnUnauthenticatedHeader() (whichever
126 // was called last), will return false and prevent a subsequent invocation 126 // was called last), will return false and prevent a subsequent invocation
127 // of these methods. Thus, the payload of the packet is never processed in 127 // of these methods. Thus, the payload of the packet is never processed in
128 // the dispatcher. 128 // the dispatcher.
129 void OnPublicResetPacket(const QuicPublicResetPacket& packet) override; 129 void OnPublicResetPacket(const QuicPublicResetPacket& packet) override;
130 void OnVersionNegotiationPacket( 130 void OnVersionNegotiationPacket(
131 const QuicVersionNegotiationPacket& packet) override; 131 const QuicVersionNegotiationPacket& packet) override;
132 void OnDecryptedPacket(EncryptionLevel level) override; 132 void OnDecryptedPacket(EncryptionLevel level) override;
133 bool OnPacketHeader(const QuicPacketHeader& header) override; 133 bool OnPacketHeader(const QuicPacketHeader& header) override;
134 void OnRevivedPacket() override;
135 void OnFecProtectedPayload(base::StringPiece payload) override;
136 bool OnStreamFrame(const QuicStreamFrame& frame) override; 134 bool OnStreamFrame(const QuicStreamFrame& frame) override;
137 bool OnAckFrame(const QuicAckFrame& frame) override; 135 bool OnAckFrame(const QuicAckFrame& frame) override;
138 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; 136 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override;
139 bool OnPingFrame(const QuicPingFrame& frame) override; 137 bool OnPingFrame(const QuicPingFrame& frame) override;
140 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; 138 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override;
141 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; 139 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override;
142 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; 140 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override;
143 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; 141 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override;
144 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; 142 bool OnBlockedFrame(const QuicBlockedFrame& frame) override;
145 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override; 143 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override;
146 void OnFecData(base::StringPiece redundancy) override;
147 void OnPacketComplete() override; 144 void OnPacketComplete() override;
148 145
149 protected: 146 protected:
150 virtual QuicServerSessionBase* CreateQuicSession( 147 virtual QuicServerSessionBase* CreateQuicSession(
151 QuicConnectionId connection_id, 148 QuicConnectionId connection_id,
152 const IPEndPoint& client_address); 149 const IPEndPoint& client_address);
153 150
154 // Values to be returned by ValidityChecks() to indicate what should be done 151 // Values to be returned by ValidityChecks() to indicate what should be done
155 // with a packet. Fates with greater values are considered to be higher 152 // with a packet. Fates with greater values are considered to be higher
156 // priority, in that if one validity check indicates a lower-valued fate and 153 // priority, in that if one validity check indicates a lower-valued fate and
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // The last error set by SetLastError(), which is called by 257 // The last error set by SetLastError(), which is called by
261 // framer_visitor_->OnError(). 258 // framer_visitor_->OnError().
262 QuicErrorCode last_error_; 259 QuicErrorCode last_error_;
263 260
264 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 261 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
265 }; 262 };
266 263
267 } // namespace net 264 } // namespace net
268 265
269 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 266 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698