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

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

Issue 1905843003: Split out QuicAlarm creation from QuicConnectionHelper to new QuicAlarmFactory. No behavior change,… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119753783
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « net/quic/quic_spdy_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 <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
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
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_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