| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "base/win/registry.h" | 27 #include "base/win/registry.h" |
| 28 #include "base/win/scoped_handle.h" | 28 #include "base/win/scoped_handle.h" |
| 29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
| 30 #include "net/base/ip_address.h" | 30 #include "net/base/ip_address.h" |
| 31 #include "net/base/network_change_notifier.h" | 31 #include "net/base/network_change_notifier.h" |
| 32 #include "net/dns/dns_hosts.h" | 32 #include "net/dns/dns_hosts.h" |
| 33 #include "net/dns/dns_protocol.h" | 33 #include "net/dns/dns_protocol.h" |
| 34 #include "net/dns/serial_worker.h" | 34 #include "net/dns/serial_worker.h" |
| 35 #include "url/url_canon.h" | 35 #include "url/url_canon.h" |
| 36 | 36 |
| 37 #pragma comment(lib, "iphlpapi.lib") | |
| 38 | |
| 39 namespace net { | 37 namespace net { |
| 40 | 38 |
| 41 namespace internal { | 39 namespace internal { |
| 42 | 40 |
| 43 namespace { | 41 namespace { |
| 44 | 42 |
| 45 // Interval between retries to parse config. Used only until parsing succeeds. | 43 // Interval between retries to parse config. Used only until parsing succeeds. |
| 46 const int kRetryIntervalSeconds = 5; | 44 const int kRetryIntervalSeconds = 5; |
| 47 | 45 |
| 48 // Registry key paths. | 46 // Registry key paths. |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 } | 769 } |
| 772 | 770 |
| 773 } // namespace internal | 771 } // namespace internal |
| 774 | 772 |
| 775 // static | 773 // static |
| 776 scoped_ptr<DnsConfigService> DnsConfigService::CreateSystemService() { | 774 scoped_ptr<DnsConfigService> DnsConfigService::CreateSystemService() { |
| 777 return scoped_ptr<DnsConfigService>(new internal::DnsConfigServiceWin()); | 775 return scoped_ptr<DnsConfigService>(new internal::DnsConfigServiceWin()); |
| 778 } | 776 } |
| 779 | 777 |
| 780 } // namespace net | 778 } // namespace net |
| OLD | NEW |