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 specific QuicSession subclass. | 5 // A server specific QuicSession subclass. |
6 | 6 |
7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 virtual void OnConnectionClosed(QuicConnectionId connection_id, | 41 virtual void OnConnectionClosed(QuicConnectionId connection_id, |
42 QuicErrorCode error) = 0; | 42 QuicErrorCode error) = 0; |
43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; | 43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; |
44 }; | 44 }; |
45 | 45 |
46 class QuicServerSession : public QuicSession { | 46 class QuicServerSession : public QuicSession { |
47 public: | 47 public: |
48 QuicServerSession(const QuicConfig& config, | 48 QuicServerSession(const QuicConfig& config, |
49 QuicConnection* connection, | 49 QuicConnection* connection, |
50 uint32 max_flow_control_window_bytes, | |
51 QuicServerSessionVisitor* visitor); | 50 QuicServerSessionVisitor* visitor); |
52 | 51 |
53 // Override the base class to notify the owner of the connection close. | 52 // Override the base class to notify the owner of the connection close. |
54 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 53 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
55 virtual void OnWriteBlocked() OVERRIDE; | 54 virtual void OnWriteBlocked() OVERRIDE; |
56 | 55 |
57 virtual ~QuicServerSession(); | 56 virtual ~QuicServerSession(); |
58 | 57 |
59 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); | 58 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); |
60 | 59 |
(...skipping 21 matching lines...) Expand all Loading... |
82 scoped_ptr<QuicCryptoServerStream> crypto_stream_; | 81 scoped_ptr<QuicCryptoServerStream> crypto_stream_; |
83 QuicServerSessionVisitor* visitor_; | 82 QuicServerSessionVisitor* visitor_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 84 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace tools | 87 } // namespace tools |
89 } // namespace net | 88 } // namespace net |
90 | 89 |
91 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 90 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
OLD | NEW |