| 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 15 matching lines...) Expand all Loading... |
| 26 class QuicConfig; | 26 class QuicConfig; |
| 27 class QuicCryptoServerConfig; | 27 class QuicCryptoServerConfig; |
| 28 class QuicServerSession; | 28 class QuicServerSession; |
| 29 | 29 |
| 30 namespace tools { | 30 namespace tools { |
| 31 | 31 |
| 32 namespace test { | 32 namespace test { |
| 33 class QuicDispatcherPeer; | 33 class QuicDispatcherPeer; |
| 34 } // namespace test | 34 } // namespace test |
| 35 | 35 |
| 36 extern int32 FLAGS_quic_session_map_threshold_for_stateless_rejects; | |
| 37 | |
| 38 class ProcessPacketInterface { | 36 class ProcessPacketInterface { |
| 39 public: | 37 public: |
| 40 virtual ~ProcessPacketInterface() {} | 38 virtual ~ProcessPacketInterface() {} |
| 41 virtual void ProcessPacket(const IPEndPoint& server_address, | 39 virtual void ProcessPacket(const IPEndPoint& server_address, |
| 42 const IPEndPoint& client_address, | 40 const IPEndPoint& client_address, |
| 43 const QuicEncryptedPacket& packet) = 0; | 41 const QuicEncryptedPacket& packet) = 0; |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 class QuicDispatcher : public QuicServerSessionVisitor, | 44 class QuicDispatcher : public QuicServerSessionVisitor, |
| 47 public ProcessPacketInterface, | 45 public ProcessPacketInterface, |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // framer_visitor_->OnError(). | 282 // framer_visitor_->OnError(). |
| 285 QuicErrorCode last_error_; | 283 QuicErrorCode last_error_; |
| 286 | 284 |
| 287 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 285 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
| 288 }; | 286 }; |
| 289 | 287 |
| 290 } // namespace tools | 288 } // namespace tools |
| 291 } // namespace net | 289 } // namespace net |
| 292 | 290 |
| 293 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 291 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
| OLD | NEW |