Index: net/quic/quic_dispatcher.h |
diff --git a/net/quic/quic_dispatcher.h b/net/quic/quic_dispatcher.h |
index 1f666742e3fe4617df41df30dffeb10d9b07268d..fa420fc93e670aaceec20e39dc6a173cd9d635d8 100644 |
--- a/net/quic/quic_dispatcher.h |
+++ b/net/quic/quic_dispatcher.h |
@@ -46,7 +46,16 @@ class QuicDispatcherPeer; |
class DeleteSessionsAlarm; |
-class QuicDispatcher : public QuicServerSessionVisitor { |
+class ProcessPacketInterface { |
+ public: |
+ virtual ~ProcessPacketInterface() {} |
+ virtual void ProcessPacket(const IPEndPoint& server_address, |
+ const IPEndPoint& client_address, |
+ const QuicEncryptedPacket& packet) = 0; |
+}; |
+ |
+class QuicDispatcher : public QuicServerSessionVisitor, |
+ public ProcessPacketInterface { |
public: |
// Ideally we'd have a linked_hash_set: the boolean is unused. |
typedef linked_hash_map<QuicBlockedWriterInterface*, bool> WriteBlockedList; |
@@ -68,7 +77,7 @@ class QuicDispatcher : public QuicServerSessionVisitor { |
// an existing session, or passing it to the TimeWaitListManager. |
virtual void ProcessPacket(const IPEndPoint& server_address, |
const IPEndPoint& client_address, |
- const QuicEncryptedPacket& packet); |
+ const QuicEncryptedPacket& packet) OVERRIDE; |
// Called when the socket becomes writable to allow queued writes to happen. |
virtual void OnCanWrite(); |