| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 const BoundNetLog& net_log); | 213 const BoundNetLog& net_log); |
| 214 | 214 |
| 215 bool OnResolution(const SessionKey& session_key, | 215 bool OnResolution(const SessionKey& session_key, |
| 216 const AddressList& address_list); | 216 const AddressList& address_list); |
| 217 void OnJobComplete(Job* job, int rv); | 217 void OnJobComplete(Job* job, int rv); |
| 218 bool HasActiveSession(const SessionKey& session_key) const; | 218 bool HasActiveSession(const SessionKey& session_key) const; |
| 219 bool HasActiveJob(const SessionKey& session_key) const; | 219 bool HasActiveJob(const SessionKey& session_key) const; |
| 220 int CreateSession(const HostPortProxyPair& host_port_proxy_pair, | 220 int CreateSession(const HostPortProxyPair& host_port_proxy_pair, |
| 221 bool is_https, | 221 bool is_https, |
| 222 CertVerifier* cert_verifier, | 222 CertVerifier* cert_verifier, |
| 223 scoped_ptr<QuicServerInfo> quic_server_info, |
| 223 const AddressList& address_list, | 224 const AddressList& address_list, |
| 224 const BoundNetLog& net_log, | 225 const BoundNetLog& net_log, |
| 225 QuicClientSession** session); | 226 QuicClientSession** session); |
| 226 void ActivateSession(const SessionKey& key, | 227 void ActivateSession(const SessionKey& key, |
| 227 QuicClientSession* session); | 228 QuicClientSession* session); |
| 228 | 229 |
| 229 QuicCryptoClientConfig* GetOrCreateCryptoConfig( | 230 QuicCryptoClientConfig* GetOrCreateCryptoConfig( |
| 230 const SessionKey& session_key); | 231 const SessionKey& session_key); |
| 231 | 232 |
| 232 // If the suffix of the hostname in |session_key| is in |canoncial_suffixes_|, | 233 // 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... |
| 303 uint64 port_seed_; | 304 uint64 port_seed_; |
| 304 | 305 |
| 305 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 306 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 306 | 307 |
| 307 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 308 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 308 }; | 309 }; |
| 309 | 310 |
| 310 } // namespace net | 311 } // namespace net |
| 311 | 312 |
| 312 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 313 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |