| 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/dns/dns_config_service_win.h" | 5 #include "net/dns/dns_config_service_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_path_watcher.h" | 14 #include "base/files/file_path_watcher.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.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/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
| 22 #include "base/threading/non_thread_safe.h" | 22 #include "base/threading/non_thread_safe.h" |
| 23 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
| 24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 25 #include "base/win/object_watcher.h" | 25 #include "base/win/object_watcher.h" |
| 26 #include "base/win/registry.h" | 26 #include "base/win/registry.h" |
| 27 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
| 28 #include "googleurl/src/url_canon.h" | |
| 29 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
| 30 #include "net/base/network_change_notifier.h" | 29 #include "net/base/network_change_notifier.h" |
| 31 #include "net/dns/dns_hosts.h" | 30 #include "net/dns/dns_hosts.h" |
| 32 #include "net/dns/dns_protocol.h" | 31 #include "net/dns/dns_protocol.h" |
| 33 #include "net/dns/serial_worker.h" | 32 #include "net/dns/serial_worker.h" |
| 33 #include "url/url_canon.h" |
| 34 | 34 |
| 35 #pragma comment(lib, "iphlpapi.lib") | 35 #pragma comment(lib, "iphlpapi.lib") |
| 36 | 36 |
| 37 namespace net { | 37 namespace net { |
| 38 | 38 |
| 39 namespace internal { | 39 namespace internal { |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 // Interval between retries to parse config. Used only until parsing succeeds. | 43 // Interval between retries to parse config. Used only until parsing succeeds. |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 } | 728 } |
| 729 | 729 |
| 730 } // namespace internal | 730 } // namespace internal |
| 731 | 731 |
| 732 // static | 732 // static |
| 733 scoped_ptr<DnsConfigService> DnsConfigService::CreateSystemService() { | 733 scoped_ptr<DnsConfigService> DnsConfigService::CreateSystemService() { |
| 734 return scoped_ptr<DnsConfigService>(new internal::DnsConfigServiceWin()); | 734 return scoped_ptr<DnsConfigService>(new internal::DnsConfigServiceWin()); |
| 735 } | 735 } |
| 736 | 736 |
| 737 } // namespace net | 737 } // namespace net |
| OLD | NEW |