| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |