| OLD | NEW |
| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool OnStreamFrame(const QuicStreamFrame& frame) override; | 134 bool OnStreamFrame(const QuicStreamFrame& frame) override; |
| 135 bool OnAckFrame(const QuicAckFrame& frame) override; | 135 bool OnAckFrame(const QuicAckFrame& frame) override; |
| 136 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; | 136 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; |
| 137 bool OnPaddingFrame(const QuicPaddingFrame& frame) override; | 137 bool OnPaddingFrame(const QuicPaddingFrame& frame) override; |
| 138 bool OnPingFrame(const QuicPingFrame& frame) override; | 138 bool OnPingFrame(const QuicPingFrame& frame) override; |
| 139 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; | 139 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; |
| 140 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; | 140 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; |
| 141 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; | 141 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; |
| 142 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; | 142 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; |
| 143 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; | 143 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; |
| 144 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override; | |
| 145 void OnPacketComplete() override; | 144 void OnPacketComplete() override; |
| 146 | 145 |
| 147 // QuicBufferedPacketStore::VisitorInterface implementation. | 146 // QuicBufferedPacketStore::VisitorInterface implementation. |
| 148 void OnExpiredPackets(QuicConnectionId connection_id, | 147 void OnExpiredPackets(QuicConnectionId connection_id, |
| 149 QuicBufferedPacketStore::BufferedPacketList | 148 QuicBufferedPacketStore::BufferedPacketList |
| 150 early_arrived_packets) override; | 149 early_arrived_packets) override; |
| 151 | 150 |
| 152 // Create connections for previously buffered CHLOs as many as allowed. | 151 // Create connections for previously buffered CHLOs as many as allowed. |
| 153 virtual void ProcessBufferedChlos(size_t max_connections_to_create); | 152 virtual void ProcessBufferedChlos(size_t max_connections_to_create); |
| 154 | 153 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // A backward counter of how many new sessions can be create within current | 383 // A backward counter of how many new sessions can be create within current |
| 385 // event loop. When reaches 0, it means can't create sessions for now. | 384 // event loop. When reaches 0, it means can't create sessions for now. |
| 386 int16_t new_sessions_allowed_per_event_loop_; | 385 int16_t new_sessions_allowed_per_event_loop_; |
| 387 | 386 |
| 388 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 387 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
| 389 }; | 388 }; |
| 390 | 389 |
| 391 } // namespace net | 390 } // namespace net |
| 392 | 391 |
| 393 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 392 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
| OLD | NEW |