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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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 | « net/disk_cache/simple/simple_index.h ('k') | net/dns/dns_transaction.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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Set when |timer_| expires. 197 // Set when |timer_| expires.
198 bool last_sent_empty_; 198 bool last_sent_empty_;
199 199
200 // Initialized and updated on Invalidate* call. 200 // Initialized and updated on Invalidate* call.
201 base::TimeTicks last_invalidate_config_time_; 201 base::TimeTicks last_invalidate_config_time_;
202 base::TimeTicks last_invalidate_hosts_time_; 202 base::TimeTicks last_invalidate_hosts_time_;
203 // Initialized and updated when |timer_| expires. 203 // Initialized and updated when |timer_| expires.
204 base::TimeTicks last_sent_empty_time_; 204 base::TimeTicks last_sent_empty_time_;
205 205
206 // Started in Invalidate*, cleared in On*Read. 206 // Started in Invalidate*, cleared in On*Read.
207 base::OneShotTimer<DnsConfigService> timer_; 207 base::OneShotTimer timer_;
208 208
209 NameServerClassifier classifier_; 209 NameServerClassifier classifier_;
210 210
211 DISALLOW_COPY_AND_ASSIGN(DnsConfigService); 211 DISALLOW_COPY_AND_ASSIGN(DnsConfigService);
212 }; 212 };
213 213
214 } // namespace net 214 } // namespace net
215 215
216 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_ 216 #endif // NET_DNS_DNS_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_index.h ('k') | net/dns/dns_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698