| 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/base/network_change_notifier.h" | 5 #include "net/base/network_change_notifier.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 15 #include "net/base/network_change_notifier_factory.h" | 15 #include "net/base/network_change_notifier_factory.h" |
| 16 #include "net/base/network_interfaces.h" |
| 16 #include "net/dns/dns_config_service.h" | 17 #include "net/dns/dns_config_service.h" |
| 17 #include "net/url_request/url_request.h" | 18 #include "net/url_request/url_request.h" |
| 18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 19 | 20 |
| 20 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
| 21 #include "base/metrics/sparse_histogram.h" | 22 #include "base/metrics/sparse_histogram.h" |
| 22 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 23 #include "net/android/network_library.h" | 24 #include "net/android/network_library.h" |
| 24 #endif | 25 #endif |
| 25 | 26 |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 | 1029 |
| 1029 NetworkChangeNotifier::DisableForTest::~DisableForTest() { | 1030 NetworkChangeNotifier::DisableForTest::~DisableForTest() { |
| 1030 DCHECK(!g_network_change_notifier); | 1031 DCHECK(!g_network_change_notifier); |
| 1031 g_network_change_notifier = network_change_notifier_; | 1032 g_network_change_notifier = network_change_notifier_; |
| 1032 } | 1033 } |
| 1033 | 1034 |
| 1034 void NetworkChangeNotifier::DNSObserver::OnInitialDNSConfigRead() { | 1035 void NetworkChangeNotifier::DNSObserver::OnInitialDNSConfigRead() { |
| 1035 } | 1036 } |
| 1036 | 1037 |
| 1037 } // namespace net | 1038 } // namespace net |
| OLD | NEW |