| 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 client specific QuicSession subclass. This class owns the underlying | 5 // A client specific QuicSession subclass. This class owns the underlying |
| 6 // QuicConnection and QuicConnectionHelper objects. The connection stores | 6 // QuicConnection and QuicConnectionHelper objects. The connection stores |
| 7 // a non-owning pointer to the helper so this session needs to ensure that | 7 // a non-owning pointer to the helper so this session needs to ensure that |
| 8 // the helper outlives the connection. | 8 // the helper outlives the connection. |
| 9 | 9 |
| 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void OnRstStream(const QuicRstStreamFrame& frame) override; | 169 void OnRstStream(const QuicRstStreamFrame& frame) override; |
| 170 | 170 |
| 171 // QuicClientSessionBase methods: | 171 // QuicClientSessionBase methods: |
| 172 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; | 172 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; |
| 173 void OnProofVerifyDetailsAvailable( | 173 void OnProofVerifyDetailsAvailable( |
| 174 const ProofVerifyDetails& verify_details) override; | 174 const ProofVerifyDetails& verify_details) override; |
| 175 | 175 |
| 176 // QuicConnectionVisitorInterface methods: | 176 // QuicConnectionVisitorInterface methods: |
| 177 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; | 177 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; |
| 178 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; | 178 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; |
| 179 void MaybeMigrateConnection() override; |
| 179 | 180 |
| 180 // QuicChromiumPacketReader::Visitor methods: | 181 // QuicChromiumPacketReader::Visitor methods: |
| 181 void OnReadError(int result, const DatagramClientSocket* socket) override; | 182 void OnReadError(int result, const DatagramClientSocket* socket) override; |
| 182 bool OnPacket(const QuicEncryptedPacket& packet, | 183 bool OnPacket(const QuicEncryptedPacket& packet, |
| 183 IPEndPoint local_address, | 184 IPEndPoint local_address, |
| 184 IPEndPoint peer_address) override; | 185 IPEndPoint peer_address) override; |
| 185 | 186 |
| 186 // Gets the SSL connection information. | 187 // Gets the SSL connection information. |
| 187 bool GetSSLInfo(SSLInfo* ssl_info) const; | 188 bool GetSSLInfo(SSLInfo* ssl_info) const; |
| 188 | 189 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 bool going_away_; | 312 bool going_away_; |
| 312 QuicDisabledReason disabled_reason_; | 313 QuicDisabledReason disabled_reason_; |
| 313 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 314 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 314 | 315 |
| 315 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 316 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 316 }; | 317 }; |
| 317 | 318 |
| 318 } // namespace net | 319 } // namespace net |
| 319 | 320 |
| 320 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 321 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |