| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 // Cancels a pending request. | 127 // Cancels a pending request. |
| 128 void CancelRequest(QuicStreamRequest* request); | 128 void CancelRequest(QuicStreamRequest* request); |
| 129 | 129 |
| 130 // Closes all current sessions. | 130 // Closes all current sessions. |
| 131 void CloseAllSessions(int error); | 131 void CloseAllSessions(int error); |
| 132 | 132 |
| 133 base::Value* QuicStreamFactoryInfoToValue() const; | 133 base::Value* QuicStreamFactoryInfoToValue() const; |
| 134 | 134 |
| 135 // Delete all cached state objects in |crypto_config_|. | 135 // Delete all cached state objects in |crypto_config_|. |
| 136 void ClearCachedStates(); | 136 void ClearCachedStatesInCryptoConfig(); |
| 137 | 137 |
| 138 // NetworkChangeNotifier::IPAddressObserver methods: | 138 // NetworkChangeNotifier::IPAddressObserver methods: |
| 139 | 139 |
| 140 // Until the servers support roaming, close all connections when the local | 140 // Until the servers support roaming, close all connections when the local |
| 141 // IP address changes. | 141 // IP address changes. |
| 142 virtual void OnIPAddressChanged() OVERRIDE; | 142 virtual void OnIPAddressChanged() OVERRIDE; |
| 143 | 143 |
| 144 // CertDatabase::Observer methods: | 144 // CertDatabase::Observer methods: |
| 145 | 145 |
| 146 // We close all sessions when certificate database is changed. | 146 // We close all sessions when certificate database is changed. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 int CreateSession(const QuicServerId& server_id, | 208 int CreateSession(const QuicServerId& server_id, |
| 209 scoped_ptr<QuicServerInfo> quic_server_info, | 209 scoped_ptr<QuicServerInfo> quic_server_info, |
| 210 const AddressList& address_list, | 210 const AddressList& address_list, |
| 211 const BoundNetLog& net_log, | 211 const BoundNetLog& net_log, |
| 212 QuicClientSession** session); | 212 QuicClientSession** session); |
| 213 void ActivateSession(const QuicServerId& key, | 213 void ActivateSession(const QuicServerId& key, |
| 214 QuicClientSession* session); | 214 QuicClientSession* session); |
| 215 | 215 |
| 216 // Initializes the cached state associated with |server_id| in | 216 // Initializes the cached state associated with |server_id| in |
| 217 // |crypto_config_| with the information in |server_info|. | 217 // |crypto_config_| with the information in |server_info|. |
| 218 void InitializeCachedState(const QuicServerId& server_id, | 218 void InitializeCachedStateInCryptoConfig( |
| 219 const scoped_ptr<QuicServerInfo>& server_info); | 219 const QuicServerId& server_id, |
| 220 const scoped_ptr<QuicServerInfo>& server_info); |
| 220 | 221 |
| 221 bool require_confirmation_; | 222 bool require_confirmation_; |
| 222 HostResolver* host_resolver_; | 223 HostResolver* host_resolver_; |
| 223 ClientSocketFactory* client_socket_factory_; | 224 ClientSocketFactory* client_socket_factory_; |
| 224 base::WeakPtr<HttpServerProperties> http_server_properties_; | 225 base::WeakPtr<HttpServerProperties> http_server_properties_; |
| 225 CertVerifier* cert_verifier_; | 226 CertVerifier* cert_verifier_; |
| 226 QuicServerInfoFactory* quic_server_info_factory_; | 227 QuicServerInfoFactory* quic_server_info_factory_; |
| 227 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; | 228 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; |
| 228 QuicRandom* random_generator_; | 229 QuicRandom* random_generator_; |
| 229 scoped_ptr<QuicClock> clock_; | 230 scoped_ptr<QuicClock> clock_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 uint64 port_seed_; | 272 uint64 port_seed_; |
| 272 | 273 |
| 273 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 274 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 274 | 275 |
| 275 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 276 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 276 }; | 277 }; |
| 277 | 278 |
| 278 } // namespace net | 279 } // namespace net |
| 279 | 280 |
| 280 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 281 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |