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

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

Issue 196403002: Move QuicServerInfo management from CachedState to the QuicStreamFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix crash Created 6 years, 9 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 | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_stream_factory.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 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const BoundNetLog& net_log); 198 const BoundNetLog& net_log);
199 199
200 bool OnResolution(const QuicSessionKey& session_key, 200 bool OnResolution(const QuicSessionKey& session_key,
201 const AddressList& address_list); 201 const AddressList& address_list);
202 void OnJobComplete(Job* job, int rv); 202 void OnJobComplete(Job* job, int rv);
203 bool HasActiveSession(const QuicSessionKey& session_key) const; 203 bool HasActiveSession(const QuicSessionKey& session_key) const;
204 bool HasActiveJob(const QuicSessionKey& session_key) const; 204 bool HasActiveJob(const QuicSessionKey& session_key) const;
205 int CreateSession(const HostPortPair& host_port_pair, 205 int CreateSession(const HostPortPair& host_port_pair,
206 bool is_https, 206 bool is_https,
207 CertVerifier* cert_verifier, 207 CertVerifier* cert_verifier,
208 scoped_ptr<QuicServerInfo> quic_server_info,
208 const AddressList& address_list, 209 const AddressList& address_list,
209 const BoundNetLog& net_log, 210 const BoundNetLog& net_log,
210 QuicClientSession** session); 211 QuicClientSession** session);
211 void ActivateSession(const QuicSessionKey& key, 212 void ActivateSession(const QuicSessionKey& key,
212 QuicClientSession* session); 213 QuicClientSession* session);
213 214
214 QuicCryptoClientConfig* GetOrCreateCryptoConfig( 215 QuicCryptoClientConfig* GetOrCreateCryptoConfig(
215 const QuicSessionKey& session_key); 216 const QuicSessionKey& session_key);
216 217
217 // If the suffix of the hostname in |session_key| is in |canoncial_suffixes_|, 218 // If the suffix of the hostname in |session_key| is in |canoncial_suffixes_|,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 uint64 port_seed_; 289 uint64 port_seed_;
289 290
290 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 291 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 293 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
293 }; 294 };
294 295
295 } // namespace net 296 } // namespace net
296 297
297 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 298 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698