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

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

Issue 218923002: Merge internal change: 63891842 - QuicServerId changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 12 matching lines...) Expand all
23 #include "net/quic/quic_protocol.h" 23 #include "net/quic/quic_protocol.h"
24 #include "net/quic/quic_reliable_client_stream.h" 24 #include "net/quic/quic_reliable_client_stream.h"
25 25
26 namespace net { 26 namespace net {
27 27
28 class CertVerifyResult; 28 class CertVerifyResult;
29 class DatagramClientSocket; 29 class DatagramClientSocket;
30 class QuicConnectionHelper; 30 class QuicConnectionHelper;
31 class QuicCryptoClientStreamFactory; 31 class QuicCryptoClientStreamFactory;
32 class QuicDefaultPacketWriter; 32 class QuicDefaultPacketWriter;
33 class QuicSessionKey; 33 class QuicServerId;
34 class QuicServerInfo; 34 class QuicServerInfo;
35 class QuicStreamFactory; 35 class QuicStreamFactory;
36 class SSLInfo; 36 class SSLInfo;
37 37
38 namespace test { 38 namespace test {
39 class QuicClientSessionPeer; 39 class QuicClientSessionPeer;
40 } // namespace test 40 } // namespace test
41 41
42 class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase { 42 class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase {
43 public: 43 public:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Constructs a new session which will own |connection| and |helper|, but 89 // Constructs a new session which will own |connection| and |helper|, but
90 // not |stream_factory|, which must outlive this session. 90 // not |stream_factory|, which must outlive this session.
91 // TODO(rch): decouple the factory from the session via a Delegate interface. 91 // TODO(rch): decouple the factory from the session via a Delegate interface.
92 QuicClientSession(QuicConnection* connection, 92 QuicClientSession(QuicConnection* connection,
93 scoped_ptr<DatagramClientSocket> socket, 93 scoped_ptr<DatagramClientSocket> socket,
94 scoped_ptr<QuicDefaultPacketWriter> writer, 94 scoped_ptr<QuicDefaultPacketWriter> writer,
95 QuicStreamFactory* stream_factory, 95 QuicStreamFactory* stream_factory,
96 QuicCryptoClientStreamFactory* crypto_client_stream_factory, 96 QuicCryptoClientStreamFactory* crypto_client_stream_factory,
97 scoped_ptr<QuicServerInfo> server_info, 97 scoped_ptr<QuicServerInfo> server_info,
98 const QuicSessionKey& server_key, 98 const QuicServerId& server_id,
99 const QuicConfig& config, 99 const QuicConfig& config,
100 QuicCryptoClientConfig* crypto_config, 100 QuicCryptoClientConfig* crypto_config,
101 NetLog* net_log); 101 NetLog* net_log);
102 102
103 virtual ~QuicClientSession(); 103 virtual ~QuicClientSession();
104 104
105 void AddObserver(Observer* observer); 105 void AddObserver(Observer* observer);
106 void RemoveObserver(Observer* observer); 106 void RemoveObserver(Observer* observer);
107 107
108 // Attempts to create a new stream. If the stream can be 108 // Attempts to create a new stream. If the stream can be
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // on this session. Existing stream will continue to be processed. 234 // on this session. Existing stream will continue to be processed.
235 bool going_away_; 235 bool going_away_;
236 base::WeakPtrFactory<QuicClientSession> weak_factory_; 236 base::WeakPtrFactory<QuicClientSession> weak_factory_;
237 237
238 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 238 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
239 }; 239 };
240 240
241 } // namespace net 241 } // namespace net
242 242
243 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 243 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698