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 #include "net/quic/quic_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "net/base/ip_address.h" | 24 #include "net/base/ip_address.h" |
25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
26 #include "net/base/socket_performance_watcher.h" | |
27 #include "net/base/socket_performance_watcher_factory.h" | |
28 #include "net/cert/cert_verifier.h" | 26 #include "net/cert/cert_verifier.h" |
29 #include "net/cert/ct_verifier.h" | 27 #include "net/cert/ct_verifier.h" |
30 #include "net/dns/host_resolver.h" | 28 #include "net/dns/host_resolver.h" |
31 #include "net/dns/single_request_host_resolver.h" | 29 #include "net/dns/single_request_host_resolver.h" |
32 #include "net/http/bidirectional_stream_impl.h" | 30 #include "net/http/bidirectional_stream_impl.h" |
33 #include "net/quic/bidirectional_stream_quic_impl.h" | 31 #include "net/quic/bidirectional_stream_quic_impl.h" |
34 #include "net/quic/crypto/channel_id_chromium.h" | 32 #include "net/quic/crypto/channel_id_chromium.h" |
35 #include "net/quic/crypto/proof_verifier_chromium.h" | 33 #include "net/quic/crypto/proof_verifier_chromium.h" |
36 #include "net/quic/crypto/properties_based_quic_server_info.h" | 34 #include "net/quic/crypto/properties_based_quic_server_info.h" |
37 #include "net/quic/crypto/quic_random.h" | 35 #include "net/quic/crypto/quic_random.h" |
38 #include "net/quic/crypto/quic_server_info.h" | 36 #include "net/quic/crypto/quic_server_info.h" |
39 #include "net/quic/port_suggester.h" | 37 #include "net/quic/port_suggester.h" |
40 #include "net/quic/quic_chromium_client_session.h" | 38 #include "net/quic/quic_chromium_client_session.h" |
41 #include "net/quic/quic_chromium_connection_helper.h" | 39 #include "net/quic/quic_chromium_connection_helper.h" |
42 #include "net/quic/quic_chromium_packet_reader.h" | 40 #include "net/quic/quic_chromium_packet_reader.h" |
43 #include "net/quic/quic_chromium_packet_writer.h" | 41 #include "net/quic/quic_chromium_packet_writer.h" |
44 #include "net/quic/quic_client_promised_info.h" | 42 #include "net/quic/quic_client_promised_info.h" |
45 #include "net/quic/quic_clock.h" | 43 #include "net/quic/quic_clock.h" |
46 #include "net/quic/quic_connection.h" | 44 #include "net/quic/quic_connection.h" |
47 #include "net/quic/quic_crypto_client_stream_factory.h" | 45 #include "net/quic/quic_crypto_client_stream_factory.h" |
48 #include "net/quic/quic_flags.h" | 46 #include "net/quic/quic_flags.h" |
49 #include "net/quic/quic_http_stream.h" | 47 #include "net/quic/quic_http_stream.h" |
50 #include "net/quic/quic_protocol.h" | 48 #include "net/quic/quic_protocol.h" |
51 #include "net/quic/quic_server_id.h" | 49 #include "net/quic/quic_server_id.h" |
52 #include "net/socket/client_socket_factory.h" | 50 #include "net/socket/client_socket_factory.h" |
| 51 #include "net/socket/socket_performance_watcher.h" |
| 52 #include "net/socket/socket_performance_watcher_factory.h" |
53 #include "net/ssl/token_binding.h" | 53 #include "net/ssl/token_binding.h" |
54 #include "net/udp/udp_client_socket.h" | 54 #include "net/udp/udp_client_socket.h" |
55 | 55 |
56 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
57 #include "base/win/windows_version.h" | 57 #include "base/win/windows_version.h" |
58 #endif | 58 #endif |
59 | 59 |
60 #if defined(USE_OPENSSL) | 60 #if defined(USE_OPENSSL) |
61 #include <openssl/aead.h> | 61 #include <openssl/aead.h> |
62 #include "crypto/openssl_util.h" | 62 #include "crypto/openssl_util.h" |
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 // Since the session was active, there's no longer an | 1767 // Since the session was active, there's no longer an |
1768 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP | 1768 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP |
1769 // job also fails. So to avoid not using QUIC when we otherwise could, we mark | 1769 // job also fails. So to avoid not using QUIC when we otherwise could, we mark |
1770 // it as recently broken, which means that 0-RTT will be disabled but we'll | 1770 // it as recently broken, which means that 0-RTT will be disabled but we'll |
1771 // still race. | 1771 // still race. |
1772 http_server_properties_->MarkAlternativeServiceRecentlyBroken( | 1772 http_server_properties_->MarkAlternativeServiceRecentlyBroken( |
1773 alternative_service); | 1773 alternative_service); |
1774 } | 1774 } |
1775 | 1775 |
1776 } // namespace net | 1776 } // namespace net |
OLD | NEW |