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

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

Issue 1333773002: relnote: moves ProcessPacketInterface from quic_dispatcher.h to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Refactor_QuicAckFrame_missing_packets_101778041
Patch Set: Created 5 years, 3 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/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_packet_reader.h » ('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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "net/base/ip_endpoint.h" 14 #include "net/base/ip_endpoint.h"
15 #include "net/base/linked_hash_map.h" 15 #include "net/base/linked_hash_map.h"
16 #include "net/quic/quic_blocked_writer_interface.h" 16 #include "net/quic/quic_blocked_writer_interface.h"
17 #include "net/quic/quic_connection.h" 17 #include "net/quic/quic_connection.h"
18 #include "net/quic/quic_protocol.h" 18 #include "net/quic/quic_protocol.h"
19 #include "net/tools/quic/quic_packet_reader.h"
19 #include "net/tools/quic/quic_server_session.h" 20 #include "net/tools/quic/quic_server_session.h"
20 #include "net/tools/quic/quic_time_wait_list_manager.h" 21 #include "net/tools/quic/quic_time_wait_list_manager.h"
21 22
22 namespace net { 23 namespace net {
23 24
24 class QuicConfig; 25 class QuicConfig;
25 class QuicCryptoServerConfig; 26 class QuicCryptoServerConfig;
26 class QuicServerSession; 27 class QuicServerSession;
27 28
28 namespace tools { 29 namespace tools {
29 30
30 namespace test { 31 namespace test {
31 class QuicDispatcherPeer; 32 class QuicDispatcherPeer;
32 } // namespace test 33 } // namespace test
33 34
34 extern int32 FLAGS_quic_session_map_threshold_for_stateless_rejects; 35 extern int32 FLAGS_quic_session_map_threshold_for_stateless_rejects;
35 36
36 class ProcessPacketInterface {
37 public:
38 virtual ~ProcessPacketInterface() {}
39 virtual void ProcessPacket(const IPEndPoint& server_address,
40 const IPEndPoint& client_address,
41 const QuicEncryptedPacket& packet) = 0;
42 };
43
44 class QuicDispatcher : public QuicServerSessionVisitor, 37 class QuicDispatcher : public QuicServerSessionVisitor,
45 public ProcessPacketInterface, 38 public ProcessPacketInterface,
46 public QuicBlockedWriterInterface { 39 public QuicBlockedWriterInterface {
47 public: 40 public:
48 // Creates per-connection packet writers out of the QuicDispatcher's shared 41 // Creates per-connection packet writers out of the QuicDispatcher's shared
49 // QuicPacketWriter. The per-connection writers' IsWriteBlocked() state must 42 // QuicPacketWriter. The per-connection writers' IsWriteBlocked() state must
50 // always be the same as the shared writer's IsWriteBlocked(), or else the 43 // always be the same as the shared writer's IsWriteBlocked(), or else the
51 // QuicDispatcher::OnCanWrite logic will not work. (This will hopefully be 44 // QuicDispatcher::OnCanWrite logic will not work. (This will hopefully be
52 // cleaned up for bug 16950226.) 45 // cleaned up for bug 16950226.)
53 class PacketWriterFactory { 46 class PacketWriterFactory {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // framer_visitor_->OnError(). 280 // framer_visitor_->OnError().
288 QuicErrorCode last_error_; 281 QuicErrorCode last_error_;
289 282
290 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 283 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
291 }; 284 };
292 285
293 } // namespace tools 286 } // namespace tools
294 } // namespace net 287 } // namespace net
295 288
296 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 289 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_packet_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698