| 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_CONFIG_SERVICE_WIN_H_ | 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
| 6 #define NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ | 6 #define NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
| 7 | 7 |
| 8 // The sole purpose of dns_config_service_win.h is for unittests so we just | 8 // The sole purpose of dns_config_service_win.h is for unittests so we just |
| 9 // include these headers here. | 9 // include these headers here. |
| 10 #include <winsock2.h> | 10 #include <winsock2.h> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 public: | 118 public: |
| 119 DnsConfigServiceWin(); | 119 DnsConfigServiceWin(); |
| 120 virtual ~DnsConfigServiceWin(); | 120 virtual ~DnsConfigServiceWin(); |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 class Watcher; | 123 class Watcher; |
| 124 class ConfigReader; | 124 class ConfigReader; |
| 125 class HostsReader; | 125 class HostsReader; |
| 126 | 126 |
| 127 // DnsConfigService: | 127 // DnsConfigService: |
| 128 virtual void ReadNow() OVERRIDE; | 128 virtual void ReadNow() override; |
| 129 virtual bool StartWatching() OVERRIDE; | 129 virtual bool StartWatching() override; |
| 130 | 130 |
| 131 void OnConfigChanged(bool succeeded); | 131 void OnConfigChanged(bool succeeded); |
| 132 void OnHostsChanged(bool succeeded); | 132 void OnHostsChanged(bool succeeded); |
| 133 | 133 |
| 134 scoped_ptr<Watcher> watcher_; | 134 scoped_ptr<Watcher> watcher_; |
| 135 scoped_refptr<ConfigReader> config_reader_; | 135 scoped_refptr<ConfigReader> config_reader_; |
| 136 scoped_refptr<HostsReader> hosts_reader_; | 136 scoped_refptr<HostsReader> hosts_reader_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(DnsConfigServiceWin); | 138 DISALLOW_COPY_AND_ASSIGN(DnsConfigServiceWin); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace internal | 141 } // namespace internal |
| 142 | 142 |
| 143 } // namespace net | 143 } // namespace net |
| 144 | 144 |
| 145 #endif // NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ | 145 #endif // NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
| 146 | 146 |
| OLD | NEW |