Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: net/dns/dns_config_service.h

Issue 10537106: [net/dns] Suppress multiple DnsConfig withdrawals after timeout. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added requested DCHECK. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/dns/dns_config_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/dns/dns_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698