| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return GetCryptoStream()->use_stateless_rejects_if_peer_supported(); | 84 return GetCryptoStream()->use_stateless_rejects_if_peer_supported(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool PeerSupportsStatelessRejects() { | 87 bool PeerSupportsStatelessRejects() { |
| 88 if (GetCryptoStream() == nullptr) { | 88 if (GetCryptoStream() == nullptr) { |
| 89 return false; | 89 return false; |
| 90 } | 90 } |
| 91 return GetCryptoStream()->peer_supports_stateless_rejects(); | 91 return GetCryptoStream()->peer_supports_stateless_rejects(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void set_serving_region(std::string serving_region) { | 94 void set_serving_region(const std::string& serving_region) { |
| 95 serving_region_ = serving_region; | 95 serving_region_ = serving_region; |
| 96 } | 96 } |
| 97 | 97 |
| 98 void set_use_stateless_rejects_if_peer_supported( | 98 void set_use_stateless_rejects_if_peer_supported( |
| 99 bool use_stateless_rejects_if_peer_supported) { | 99 bool use_stateless_rejects_if_peer_supported) { |
| 100 DCHECK(GetCryptoStream() != nullptr); | 100 DCHECK(GetCryptoStream() != nullptr); |
| 101 GetCryptoStream()->set_use_stateless_rejects_if_peer_supported( | 101 GetCryptoStream()->set_use_stateless_rejects_if_peer_supported( |
| 102 use_stateless_rejects_if_peer_supported); | 102 use_stateless_rejects_if_peer_supported); |
| 103 } | 103 } |
| 104 | 104 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Number of packets sent to the peer, at the time we last sent a SCUP. | 139 // Number of packets sent to the peer, at the time we last sent a SCUP. |
| 140 int64 last_scup_packet_number_; | 140 int64 last_scup_packet_number_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 142 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace tools | 145 } // namespace tools |
| 146 } // namespace net | 146 } // namespace net |
| 147 | 147 |
| 148 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 148 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
| OLD | NEW |