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

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

Issue 2675763004: Add an URLRequestTest to test the quic server info factory setup at the creation of HttpCache. (Closed)
Patch Set: Created 3 years, 10 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/http/mock_http_cache.h ('k') | net/url_request/url_request_unittest.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_CHROMIUM_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_CHROMIUM_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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 368
369 bool ZeroRTTEnabledFor(const QuicServerId& server_id); 369 bool ZeroRTTEnabledFor(const QuicServerId& server_id);
370 370
371 // It returns the amount of time waiting job should be delayed. 371 // It returns the amount of time waiting job should be delayed.
372 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); 372 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id);
373 373
374 QuicChromiumConnectionHelper* helper() { return helper_.get(); } 374 QuicChromiumConnectionHelper* helper() { return helper_.get(); }
375 375
376 QuicChromiumAlarmFactory* alarm_factory() { return alarm_factory_.get(); } 376 QuicChromiumAlarmFactory* alarm_factory() { return alarm_factory_.get(); }
377 377
378 bool has_quic_server_info_factory() { 378 bool has_quic_server_info_factory() const {
379 return quic_server_info_factory_.get() != nullptr; 379 return quic_server_info_factory_.get() != nullptr;
380 } 380 }
381 381
382 QuicServerInfoFactory* quic_server_info_factory() const {
383 return quic_server_info_factory_.get();
384 }
385
382 void set_quic_server_info_factory( 386 void set_quic_server_info_factory(
383 QuicServerInfoFactory* quic_server_info_factory); 387 QuicServerInfoFactory* quic_server_info_factory);
384 388
385 void set_server_push_delegate(ServerPushDelegate* push_delegate) { 389 void set_server_push_delegate(ServerPushDelegate* push_delegate) {
386 push_delegate_ = push_delegate; 390 push_delegate_ = push_delegate;
387 } 391 }
388 392
389 bool enable_connection_racing() const { return enable_connection_racing_; } 393 bool enable_connection_racing() const { return enable_connection_racing_; }
390 void set_enable_connection_racing(bool enable_connection_racing) { 394 void set_enable_connection_racing(bool enable_connection_racing) {
391 enable_connection_racing_ = enable_connection_racing; 395 enable_connection_racing_ = enable_connection_racing;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 const scoped_refptr<SSLConfigService> ssl_config_service_; 674 const scoped_refptr<SSLConfigService> ssl_config_service_;
671 675
672 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 676 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
673 677
674 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 678 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
675 }; 679 };
676 680
677 } // namespace net 681 } // namespace net
678 682
679 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ 683 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/mock_http_cache.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698