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

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

Issue 14083012: QUIC: retransmit packets with the correct encryption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved HandshakeMode enum to MockCryptoClientStream Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/quic_client_session.cc » ('j') | net/quic/quic_client_session.cc » ('J')
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_QUIC_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_
(...skipping 27 matching lines...) Expand all
38 const std::string& server_hostname, 38 const std::string& server_hostname,
39 QuicCryptoClientConfig* crypto_config, 39 QuicCryptoClientConfig* crypto_config,
40 NetLog* net_log); 40 NetLog* net_log);
41 41
42 virtual ~QuicClientSession(); 42 virtual ~QuicClientSession();
43 43
44 // QuicSession methods: 44 // QuicSession methods:
45 virtual QuicReliableClientStream* CreateOutgoingReliableStream() OVERRIDE; 45 virtual QuicReliableClientStream* CreateOutgoingReliableStream() OVERRIDE;
46 virtual QuicCryptoClientStream* GetCryptoStream() OVERRIDE; 46 virtual QuicCryptoClientStream* GetCryptoStream() OVERRIDE;
47 virtual void CloseStream(QuicStreamId stream_id) OVERRIDE; 47 virtual void CloseStream(QuicStreamId stream_id) OVERRIDE;
48 virtual void OnCryptoHandshakeComplete(QuicErrorCode error) OVERRIDE; 48 virtual void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) OVERRIDE;
49
50 // QuicConnectionVisitorInterface methods:
51 virtual void ConnectionClose(QuicErrorCode error, bool from_peer) OVERRIDE;
49 52
50 // Performs a crypto handshake with the server. 53 // Performs a crypto handshake with the server.
51 int CryptoConnect(const CompletionCallback& callback); 54 int CryptoConnect(const CompletionCallback& callback);
52 55
53 // Causes the QuicConnectionHelper to start reading from the socket 56 // Causes the QuicConnectionHelper to start reading from the socket
54 // and passing the data along to the QuicConnection. 57 // and passing the data along to the QuicConnection.
55 void StartReading(); 58 void StartReading();
56 59
57 // Close the session because of |error|. 60 // Close the session because of |error|.
58 void CloseSessionOnError(int error); 61 void CloseSessionOnError(int error);
(...skipping 24 matching lines...) Expand all
83 size_t num_total_streams_; 86 size_t num_total_streams_;
84 BoundNetLog net_log_; 87 BoundNetLog net_log_;
85 QuicConnectionLogger logger_; 88 QuicConnectionLogger logger_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 90 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
88 }; 91 };
89 92
90 } // namespace net 93 } // namespace net
91 94
92 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 95 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_client_session.cc » ('j') | net/quic/quic_client_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698