| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 virtual void OnConnectionClosed(QuicConnectionId connection_id, | 40 virtual void OnConnectionClosed(QuicConnectionId connection_id, |
| 41 QuicErrorCode error) = 0; | 41 QuicErrorCode error) = 0; |
| 42 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; | 42 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class QuicServerSession : public QuicSession { | 45 class QuicServerSession : public QuicSession { |
| 46 public: | 46 public: |
| 47 QuicServerSession(const QuicConfig& config, | 47 QuicServerSession(const QuicConfig& config, |
| 48 QuicConnection* connection, | 48 QuicConnection* connection, |
| 49 QuicServerSessionVisitor* visitor, | 49 QuicServerSessionVisitor* visitor); |
| 50 bool is_secure); | |
| 51 | 50 |
| 52 // Override the base class to notify the owner of the connection close. | 51 // Override the base class to notify the owner of the connection close. |
| 53 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; | 52 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; |
| 54 void OnWriteBlocked() override; | 53 void OnWriteBlocked() override; |
| 55 | 54 |
| 56 // Sends a server config update to the client, containing new bandwidth | 55 // Sends a server config update to the client, containing new bandwidth |
| 57 // estimate. | 56 // estimate. |
| 58 void OnCongestionWindowChange(QuicTime now) override; | 57 void OnCongestionWindowChange(QuicTime now) override; |
| 59 | 58 |
| 60 ~QuicServerSession() override; | 59 ~QuicServerSession() override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 103 |
| 105 // Number of packets sent to the peer, at the time we last sent a SCUP. | 104 // Number of packets sent to the peer, at the time we last sent a SCUP. |
| 106 int64 last_scup_sequence_number_; | 105 int64 last_scup_sequence_number_; |
| 107 | 106 |
| 108 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 107 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace net | 110 } // namespace net |
| 112 | 111 |
| 113 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ | 112 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ |
| OLD | NEW |