OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/metrics/net/network_metrics_provider.h" | 5 #include "components/metrics/net/network_metrics_provider.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/metrics/sparse_histogram.h" | 16 #include "base/metrics/sparse_histogram.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
| 21 #include "base/threading/thread_task_runner_handle.h" |
21 #include "build/build_config.h" | 22 #include "build/build_config.h" |
22 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
23 #include "net/nqe/network_quality_estimator.h" | 24 #include "net/nqe/network_quality_estimator.h" |
24 | 25 |
25 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
26 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h" | 27 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h" |
27 #endif // OS_CHROMEOS | 28 #endif // OS_CHROMEOS |
28 | 29 |
29 namespace metrics { | 30 namespace metrics { |
30 | 31 |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 DCHECK(thread_checker_.CalledOnValidThread()); | 431 DCHECK(thread_checker_.CalledOnValidThread()); |
431 if (effective_connection_type_ != type && | 432 if (effective_connection_type_ != type && |
432 type != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN && | 433 type != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN && |
433 effective_connection_type_ != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN) { | 434 effective_connection_type_ != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN) { |
434 effective_connection_type_is_ambiguous_ = true; | 435 effective_connection_type_is_ambiguous_ = true; |
435 } | 436 } |
436 effective_connection_type_ = type; | 437 effective_connection_type_ = type; |
437 } | 438 } |
438 | 439 |
439 } // namespace metrics | 440 } // namespace metrics |
OLD | NEW |