| 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_DNS_DNS_SESSION_H_ | 5 #ifndef NET_DNS_DNS_SESSION_H_ |
| 6 #define NET_DNS_DNS_SESSION_H_ | 6 #define NET_DNS_DNS_SESSION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/metrics/bucket_ranges.h" | 16 #include "base/metrics/bucket_ranges.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
| 19 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
| 20 #include "net/base/rand_callback.h" | 20 #include "net/base/rand_callback.h" |
| 21 #include "net/dns/dns_config_service.h" | 21 #include "net/dns/dns_config_service.h" |
| 22 #include "net/dns/dns_socket_pool.h" | 22 #include "net/dns/dns_socket_pool.h" |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class BucketRanges; | 25 class BucketRanges; |
| 26 class SampleVector; | |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace net { | 28 namespace net { |
| 30 | 29 |
| 31 class ClientSocketFactory; | |
| 32 class DatagramClientSocket; | 30 class DatagramClientSocket; |
| 33 class NetLog; | 31 class NetLog; |
| 34 struct NetLogSource; | 32 struct NetLogSource; |
| 35 class StreamSocket; | 33 class StreamSocket; |
| 36 | 34 |
| 37 // Session parameters and state shared between DNS transactions. | 35 // Session parameters and state shared between DNS transactions. |
| 38 // Ref-counted so that DnsClient::Request can keep working in absence of | 36 // Ref-counted so that DnsClient::Request can keep working in absence of |
| 39 // DnsClient. A DnsSession must be recreated when DnsConfig changes. | 37 // DnsClient. A DnsSession must be recreated when DnsConfig changes. |
| 40 class NET_EXPORT_PRIVATE DnsSession | 38 class NET_EXPORT_PRIVATE DnsSession |
| 41 : NON_EXPORTED_BASE(public base::RefCounted<DnsSession>), | 39 : NON_EXPORTED_BASE(public base::RefCounted<DnsSession>), |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 RttBuckets(); | 154 RttBuckets(); |
| 157 }; | 155 }; |
| 158 static base::LazyInstance<RttBuckets>::Leaky rtt_buckets_; | 156 static base::LazyInstance<RttBuckets>::Leaky rtt_buckets_; |
| 159 | 157 |
| 160 DISALLOW_COPY_AND_ASSIGN(DnsSession); | 158 DISALLOW_COPY_AND_ASSIGN(DnsSession); |
| 161 }; | 159 }; |
| 162 | 160 |
| 163 } // namespace net | 161 } // namespace net |
| 164 | 162 |
| 165 #endif // NET_DNS_DNS_SESSION_H_ | 163 #endif // NET_DNS_DNS_SESSION_H_ |
| OLD | NEW |