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

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: Merge ToT and Reset the callback in case of errors Created 7 years, 8 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 49
50 // Performs a crypto handshake with the server. 50 // Performs a crypto handshake with the server.
51 int CryptoConnect(const CompletionCallback& callback); 51 int CryptoConnect(const CompletionCallback& callback);
52 52
53 // Causes the QuicConnectionHelper to start reading from the socket 53 // Causes the QuicConnectionHelper to start reading from the socket
54 // and passing the data along to the QuicConnection. 54 // and passing the data along to the QuicConnection.
55 void StartReading(); 55 void StartReading();
56 56
57 // Close the session because of |error|. 57 // Close the session because of |error|.
58 void CloseSessionOnError(int error); 58 void CloseSessionOnError(int error);
(...skipping 24 matching lines...) Expand all
83 size_t num_total_streams_; 83 size_t num_total_streams_;
84 BoundNetLog net_log_; 84 BoundNetLog net_log_;
85 QuicConnectionLogger logger_; 85 QuicConnectionLogger logger_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 87 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
88 }; 88 };
89 89
90 } // namespace net 90 } // namespace net
91 91
92 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 92 #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