| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace net { | 42 namespace net { |
| 43 | 43 |
| 44 class CTPolicyEnforcer; | 44 class CTPolicyEnforcer; |
| 45 class CertVerifier; | 45 class CertVerifier; |
| 46 class ChannelIDService; | 46 class ChannelIDService; |
| 47 class ClientSocketFactory; | 47 class ClientSocketFactory; |
| 48 class CTVerifier; | 48 class CTVerifier; |
| 49 class HostResolver; | 49 class HostResolver; |
| 50 class HttpServerProperties; | 50 class HttpServerProperties; |
| 51 class QuicClock; | 51 class QuicClock; |
| 52 class QuicChromiumAlarmFactory; |
| 52 class QuicChromiumClientSession; | 53 class QuicChromiumClientSession; |
| 53 class QuicChromiumConnectionHelper; | 54 class QuicChromiumConnectionHelper; |
| 54 class QuicCryptoClientStreamFactory; | 55 class QuicCryptoClientStreamFactory; |
| 55 class QuicRandom; | 56 class QuicRandom; |
| 56 class QuicServerInfo; | 57 class QuicServerInfo; |
| 57 class QuicServerInfoFactory; | 58 class QuicServerInfoFactory; |
| 58 class QuicStreamFactory; | 59 class QuicStreamFactory; |
| 59 class SocketPerformanceWatcherFactory; | 60 class SocketPerformanceWatcherFactory; |
| 60 class TransportSecurityState; | 61 class TransportSecurityState; |
| 61 class BidirectionalStreamImpl; | 62 class BidirectionalStreamImpl; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 297 |
| 297 void set_require_confirmation(bool require_confirmation); | 298 void set_require_confirmation(bool require_confirmation); |
| 298 | 299 |
| 299 bool ZeroRTTEnabledFor(const QuicServerId& server_id); | 300 bool ZeroRTTEnabledFor(const QuicServerId& server_id); |
| 300 | 301 |
| 301 // It returns the amount of time waiting job should be delayed. | 302 // It returns the amount of time waiting job should be delayed. |
| 302 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); | 303 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); |
| 303 | 304 |
| 304 QuicChromiumConnectionHelper* helper() { return helper_.get(); } | 305 QuicChromiumConnectionHelper* helper() { return helper_.get(); } |
| 305 | 306 |
| 307 QuicChromiumAlarmFactory* alarm_factory() { return alarm_factory_.get(); } |
| 308 |
| 306 bool enable_port_selection() const { return enable_port_selection_; } | 309 bool enable_port_selection() const { return enable_port_selection_; } |
| 307 | 310 |
| 308 bool has_quic_server_info_factory() { | 311 bool has_quic_server_info_factory() { |
| 309 return quic_server_info_factory_.get() != nullptr; | 312 return quic_server_info_factory_.get() != nullptr; |
| 310 } | 313 } |
| 311 | 314 |
| 312 void set_quic_server_info_factory( | 315 void set_quic_server_info_factory( |
| 313 QuicServerInfoFactory* quic_server_info_factory); | 316 QuicServerInfoFactory* quic_server_info_factory); |
| 314 | 317 |
| 315 bool enable_connection_racing() const { return enable_connection_racing_; } | 318 bool enable_connection_racing() const { return enable_connection_racing_; } |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 const size_t max_packet_length_; | 424 const size_t max_packet_length_; |
| 422 | 425 |
| 423 // Factory which is used to create socket performance watcher. A new watcher | 426 // Factory which is used to create socket performance watcher. A new watcher |
| 424 // is created for every QUIC connection. | 427 // is created for every QUIC connection. |
| 425 // |socket_performance_watcher_factory_| may be null. | 428 // |socket_performance_watcher_factory_| may be null. |
| 426 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; | 429 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; |
| 427 | 430 |
| 428 // The helper used for all connections. | 431 // The helper used for all connections. |
| 429 std::unique_ptr<QuicChromiumConnectionHelper> helper_; | 432 std::unique_ptr<QuicChromiumConnectionHelper> helper_; |
| 430 | 433 |
| 434 // The alarm factory used for all connections. |
| 435 std::unique_ptr<QuicChromiumAlarmFactory> alarm_factory_; |
| 436 |
| 431 // Contains owning pointers to all sessions that currently exist. | 437 // Contains owning pointers to all sessions that currently exist. |
| 432 SessionIdMap all_sessions_; | 438 SessionIdMap all_sessions_; |
| 433 // Contains non-owning pointers to currently active session | 439 // Contains non-owning pointers to currently active session |
| 434 // (not going away session, once they're implemented). | 440 // (not going away session, once they're implemented). |
| 435 SessionMap active_sessions_; | 441 SessionMap active_sessions_; |
| 436 // Map from session to set of aliases that this session is known by. | 442 // Map from session to set of aliases that this session is known by. |
| 437 SessionAliasMap session_aliases_; | 443 SessionAliasMap session_aliases_; |
| 438 // Map from IP address to sessions which are connected to this address. | 444 // Map from IP address to sessions which are connected to this address. |
| 439 IPAliasMap ip_aliases_; | 445 IPAliasMap ip_aliases_; |
| 440 | 446 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 base::TaskRunner* task_runner_; | 562 base::TaskRunner* task_runner_; |
| 557 | 563 |
| 558 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 564 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 559 | 565 |
| 560 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 566 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 561 }; | 567 }; |
| 562 | 568 |
| 563 } // namespace net | 569 } // namespace net |
| 564 | 570 |
| 565 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 571 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |