| 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_BASE_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
| 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void OnCongestionWindowChange(QuicTime now) override; | 72 void OnCongestionWindowChange(QuicTime now) override; |
| 73 | 73 |
| 74 ~QuicServerSessionBase() override; | 74 ~QuicServerSessionBase() override; |
| 75 | 75 |
| 76 void Initialize() override; | 76 void Initialize() override; |
| 77 | 77 |
| 78 const QuicCryptoServerStreamBase* crypto_stream() const { | 78 const QuicCryptoServerStreamBase* crypto_stream() const { |
| 79 return crypto_stream_.get(); | 79 return crypto_stream_.get(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 // Override base class to process FEC config received from client. | 82 // Override base class to process bandwidth related config received from |
| 83 // client. |
| 83 void OnConfigNegotiated() override; | 84 void OnConfigNegotiated() override; |
| 84 | 85 |
| 85 void set_serving_region(const std::string& serving_region) { | 86 void set_serving_region(const std::string& serving_region) { |
| 86 serving_region_ = serving_region; | 87 serving_region_ = serving_region; |
| 87 } | 88 } |
| 88 | 89 |
| 89 protected: | 90 protected: |
| 90 // QuicSession methods(override them with return type of QuicSpdyStream*): | 91 // QuicSession methods(override them with return type of QuicSpdyStream*): |
| 91 QuicCryptoServerStreamBase* GetCryptoStream() override; | 92 QuicCryptoServerStreamBase* GetCryptoStream() override; |
| 92 | 93 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 136 |
| 136 // Number of packets sent to the peer, at the time we last sent a SCUP. | 137 // Number of packets sent to the peer, at the time we last sent a SCUP. |
| 137 int64_t last_scup_packet_number_; | 138 int64_t last_scup_packet_number_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); | 140 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace net | 143 } // namespace net |
| 143 | 144 |
| 144 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ | 145 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ |
| OLD | NEW |