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_H_ | 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_H_ |
6 #define NET_DNS_DNS_CONFIG_SERVICE_H_ | 6 #define NET_DNS_DNS_CONFIG_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 CallbackType callback_; | 129 CallbackType callback_; |
130 | 130 |
131 DnsConfig dns_config_; | 131 DnsConfig dns_config_; |
132 | 132 |
133 // True after On*Read, before Invalidate*. Tells if the config is complete. | 133 // True after On*Read, before Invalidate*. Tells if the config is complete. |
134 bool have_config_; | 134 bool have_config_; |
135 bool have_hosts_; | 135 bool have_hosts_; |
136 // True if receiver needs to be updated when the config becomes complete. | 136 // True if receiver needs to be updated when the config becomes complete. |
137 bool need_update_; | 137 bool need_update_; |
| 138 // True if the last config sent was empty (instead of |dns_config_|). |
| 139 bool last_sent_empty_; |
138 | 140 |
139 // Started in Invalidate*, cleared in On*Read. | 141 // Started in Invalidate*, cleared in On*Read. |
140 base::OneShotTimer<DnsConfigService> timer_; | 142 base::OneShotTimer<DnsConfigService> timer_; |
141 | 143 |
142 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); | 144 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); |
143 }; | 145 }; |
144 | 146 |
145 } // namespace net | 147 } // namespace net |
146 | 148 |
147 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ | 149 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ |
OLD | NEW |