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

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

Issue 10543168: [net/dns] Instrument DnsConfigService to measure performance and failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Provide stub service for Android. 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 | Annotate | Revision Log
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_|). 138 // True if the last config sent was empty (instead of |dns_config_|).
139 bool last_sent_empty_; 139 bool last_sent_empty_;
140 140
141 base::TimeTicks last_invalidate_config_time_;
142 base::TimeTicks last_invalidate_hosts_time_;
mmenke 2012/06/18 17:19:50 This it's worth a comment that these will be set w
143
141 // Started in Invalidate*, cleared in On*Read. 144 // Started in Invalidate*, cleared in On*Read.
142 base::OneShotTimer<DnsConfigService> timer_; 145 base::OneShotTimer<DnsConfigService> timer_;
143 146
144 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); 147 DISALLOW_COPY_AND_ASSIGN(DnsConfigService);
145 }; 148 };
146 149
147 } // namespace net 150 } // namespace net
148 151
149 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ 152 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698