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

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

Issue 2874333002: Construct QuicSocketAddressImpl in QuicChromiumPacketReadder and pass it by const&. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void OnConnectionClosed(QuicErrorCode error, 334 void OnConnectionClosed(QuicErrorCode error,
335 const std::string& error_details, 335 const std::string& error_details,
336 ConnectionCloseSource source) override; 336 ConnectionCloseSource source) override;
337 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; 337 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
338 void OnPathDegrading() override; 338 void OnPathDegrading() override;
339 bool HasOpenDynamicStreams() const override; 339 bool HasOpenDynamicStreams() const override;
340 340
341 // QuicChromiumPacketReader::Visitor methods: 341 // QuicChromiumPacketReader::Visitor methods:
342 void OnReadError(int result, const DatagramClientSocket* socket) override; 342 void OnReadError(int result, const DatagramClientSocket* socket) override;
343 bool OnPacket(const QuicReceivedPacket& packet, 343 bool OnPacket(const QuicReceivedPacket& packet,
344 const IPEndPoint& local_address, 344 const QuicSocketAddress& local_address,
345 const IPEndPoint& peer_address) override; 345 const QuicSocketAddress& peer_address) override;
346 346
347 // MultiplexedSession methods: 347 // MultiplexedSession methods:
348 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 348 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
349 bool GetSSLInfo(SSLInfo* ssl_info) const override; 349 bool GetSSLInfo(SSLInfo* ssl_info) const override;
350 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, 350 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
351 TokenBindingType tb_type, 351 TokenBindingType tb_type,
352 std::vector<uint8_t>* out) override; 352 std::vector<uint8_t>* out) override;
353 353
354 // Performs a crypto handshake with the server. 354 // Performs a crypto handshake with the server.
355 int CryptoConnect(const CompletionCallback& callback); 355 int CryptoConnect(const CompletionCallback& callback);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // the current sockets_.size() == the passed in value. 535 // the current sockets_.size() == the passed in value.
536 bool migration_pending_; // True while migration is underway. 536 bool migration_pending_; // True while migration is underway.
537 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; 537 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_;
538 538
539 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); 539 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession);
540 }; 540 };
541 541
542 } // namespace net 542 } // namespace net
543 543
544 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_ 544 #endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698