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_QUIC_QUIC_SERVER_SESSION_BASE_H_ | 7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
8 #define NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ | 8 #define NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const std::string& error_details) = 0; | 50 const std::string& error_details) = 0; |
51 | 51 |
52 // Called when the session has become write blocked. | 52 // Called when the session has become write blocked. |
53 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; | 53 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; |
54 | 54 |
55 // Called after the given connection is added to the time-wait std::list. | 55 // Called after the given connection is added to the time-wait std::list. |
56 virtual void OnConnectionAddedToTimeWaitList( | 56 virtual void OnConnectionAddedToTimeWaitList( |
57 QuicConnectionId connection_id) = 0; | 57 QuicConnectionId connection_id) = 0; |
58 | 58 |
59 // Called before a packet is going to be processed by |session|. | 59 // Called before a packet is going to be processed by |session|. |
60 virtual void OnPacketBeingDispatchedToSession( | 60 virtual void OnPacketBeingDispatchedToSession(QuicSession* session) = 0; |
61 QuicServerSessionBase* session) = 0; | |
62 }; | 61 }; |
63 | 62 |
64 // Does not take ownership of |connection|. |crypto_config| must outlive the | 63 // Does not take ownership of |connection|. |crypto_config| must outlive the |
65 // session. |helper| must outlive any created crypto streams. | 64 // session. |helper| must outlive any created crypto streams. |
66 QuicServerSessionBase(const QuicConfig& config, | 65 QuicServerSessionBase(const QuicConfig& config, |
67 QuicConnection* connection, | 66 QuicConnection* connection, |
68 Visitor* visitor, | 67 Visitor* visitor, |
69 QuicCryptoServerStream::Helper* helper, | 68 QuicCryptoServerStream::Helper* helper, |
70 const QuicCryptoServerConfig* crypto_config, | 69 const QuicCryptoServerConfig* crypto_config, |
71 QuicCompressedCertsCache* compressed_certs_cache); | 70 QuicCompressedCertsCache* compressed_certs_cache); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // should go away once we fix http://b//27897982 | 158 // should go away once we fix http://b//27897982 |
160 int32_t BandwidthToCachedParameterBytesPerSecond( | 159 int32_t BandwidthToCachedParameterBytesPerSecond( |
161 const QuicBandwidth& bandwidth); | 160 const QuicBandwidth& bandwidth); |
162 | 161 |
163 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); | 162 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); |
164 }; | 163 }; |
165 | 164 |
166 } // namespace net | 165 } // namespace net |
167 | 166 |
168 #endif // NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ | 167 #endif // NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
OLD | NEW |