| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; | 176 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; |
| 177 void OnProofVerifyDetailsAvailable( | 177 void OnProofVerifyDetailsAvailable( |
| 178 const ProofVerifyDetails& verify_details) override; | 178 const ProofVerifyDetails& verify_details) override; |
| 179 | 179 |
| 180 // QuicConnectionVisitorInterface methods: | 180 // QuicConnectionVisitorInterface methods: |
| 181 void OnConnectionClosed(QuicErrorCode error, | 181 void OnConnectionClosed(QuicErrorCode error, |
| 182 const std::string& error_details, | 182 const std::string& error_details, |
| 183 ConnectionCloseSource source) override; | 183 ConnectionCloseSource source) override; |
| 184 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; | 184 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; |
| 185 void OnPathDegrading() override; | 185 void OnPathDegrading() override; |
| 186 bool HasOpenDynamicStreams() const override; |
| 186 | 187 |
| 187 // QuicChromiumPacketReader::Visitor methods: | 188 // QuicChromiumPacketReader::Visitor methods: |
| 188 void OnReadError(int result, const DatagramClientSocket* socket) override; | 189 void OnReadError(int result, const DatagramClientSocket* socket) override; |
| 189 bool OnPacket(const QuicReceivedPacket& packet, | 190 bool OnPacket(const QuicReceivedPacket& packet, |
| 190 IPEndPoint local_address, | 191 IPEndPoint local_address, |
| 191 IPEndPoint peer_address) override; | 192 IPEndPoint peer_address) override; |
| 192 | 193 |
| 193 // Gets the SSL connection information. | 194 // Gets the SSL connection information. |
| 194 bool GetSSLInfo(SSLInfo* ssl_info) const; | 195 bool GetSSLInfo(SSLInfo* ssl_info) const; |
| 195 | 196 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 int streams_pushed_count_; | 350 int streams_pushed_count_; |
| 350 int streams_pushed_and_claimed_count_; | 351 int streams_pushed_and_claimed_count_; |
| 351 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; | 352 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; |
| 352 | 353 |
| 353 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); | 354 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); |
| 354 }; | 355 }; |
| 355 | 356 |
| 356 } // namespace net | 357 } // namespace net |
| 357 | 358 |
| 358 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ | 359 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ |
| OLD | NEW |