OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUIC_QUIC_SERVER_SESSION_H_ | 7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_H_ |
8 #define NET_QUIC_QUIC_SERVER_SESSION_H_ | 8 #define NET_QUIC_QUIC_SERVER_SESSION_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 virtual void OnConnectionClosed(QuicConnectionId connection_id, | 39 virtual void OnConnectionClosed(QuicConnectionId connection_id, |
40 QuicErrorCode error) = 0; | 40 QuicErrorCode error) = 0; |
41 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; | 41 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; |
42 }; | 42 }; |
43 | 43 |
44 class QuicServerSession : public QuicSession { | 44 class QuicServerSession : public QuicSession { |
45 public: | 45 public: |
46 QuicServerSession(const QuicConfig& config, | 46 QuicServerSession(const QuicConfig& config, |
47 QuicConnection* connection, | 47 QuicConnection* connection, |
48 uint32 max_flow_control_window_bytes, | |
49 QuicServerSessionVisitor* visitor); | 48 QuicServerSessionVisitor* visitor); |
50 | 49 |
51 // Override the base class to notify the owner of the connection close. | 50 // Override the base class to notify the owner of the connection close. |
52 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 51 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
53 virtual void OnWriteBlocked() OVERRIDE; | 52 virtual void OnWriteBlocked() OVERRIDE; |
54 | 53 |
55 virtual ~QuicServerSession(); | 54 virtual ~QuicServerSession(); |
56 | 55 |
57 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); | 56 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); |
58 | 57 |
(...skipping 20 matching lines...) Expand all Loading... |
79 | 78 |
80 scoped_ptr<QuicCryptoServerStream> crypto_stream_; | 79 scoped_ptr<QuicCryptoServerStream> crypto_stream_; |
81 QuicServerSessionVisitor* visitor_; | 80 QuicServerSessionVisitor* visitor_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 82 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
84 }; | 83 }; |
85 | 84 |
86 } // namespace net | 85 } // namespace net |
87 | 86 |
88 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ | 87 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ |
OLD | NEW |