Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: net/quic/quic_chromium_client_session.h

Issue 1543903002: Adds socket param to OnReadError in QuicPacketReader's Visitor interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // QuicClientSessionBase methods: 170 // QuicClientSessionBase methods:
171 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; 171 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override;
172 void OnProofVerifyDetailsAvailable( 172 void OnProofVerifyDetailsAvailable(
173 const ProofVerifyDetails& verify_details) override; 173 const ProofVerifyDetails& verify_details) override;
174 174
175 // QuicConnectionVisitorInterface methods: 175 // QuicConnectionVisitorInterface methods:
176 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; 176 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override;
177 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; 177 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
178 178
179 // QuicPacketReader::Visitor methods: 179 // QuicPacketReader::Visitor methods:
180 void OnReadError(int result) override; 180 void OnReadError(int result, const DatagramClientSocket* socket) override;
181 bool OnPacket(const QuicEncryptedPacket& packet, 181 bool OnPacket(const QuicEncryptedPacket& packet,
182 IPEndPoint local_address, 182 IPEndPoint local_address,
183 IPEndPoint peer_address) override; 183 IPEndPoint peer_address) override;
184 184
185 // Gets the SSL connection information. 185 // Gets the SSL connection information.
186 bool GetSSLInfo(SSLInfo* ssl_info) const; 186 bool GetSSLInfo(SSLInfo* ssl_info) const;
187 187
188 // Performs a crypto handshake with the server. 188 // Performs a crypto handshake with the server.
189 int CryptoConnect(bool require_confirmation, 189 int CryptoConnect(bool require_confirmation,
190 const CompletionCallback& callback); 190 const CompletionCallback& callback);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool going_away_; 295 bool going_away_;
296 QuicDisabledReason disabled_reason_; 296 QuicDisabledReason disabled_reason_;
297 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; 297 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_;
298 298
299 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); 299 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession);
300 }; 300 };
301 301
302 } // namespace net 302 } // namespace net
303 303
304 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ 304 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_chromium_client_session.cc » ('j') | net/quic/quic_chromium_client_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698