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

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

Issue 1135373002: Updated NetLog::ParametersCallback & all related calbacks returning value as scoped_ptr<base::Value… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_net_log_parameters.cc ('k') | 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 bool Equals(const DnsConfig& d) const; 71 bool Equals(const DnsConfig& d) const;
72 72
73 bool EqualsIgnoreHosts(const DnsConfig& d) const; 73 bool EqualsIgnoreHosts(const DnsConfig& d) const;
74 74
75 void CopyIgnoreHosts(const DnsConfig& src); 75 void CopyIgnoreHosts(const DnsConfig& src);
76 76
77 // Returns a Value representation of |this|. Caller takes ownership of the 77 // Returns a Value representation of |this|. Caller takes ownership of the
78 // returned Value. For performance reasons, the Value only contains the 78 // returned Value. For performance reasons, the Value only contains the
79 // number of hosts rather than the full list. 79 // number of hosts rather than the full list.
80 base::Value* ToValue() const; 80 scoped_ptr<base::Value> ToValue() const;
81 81
82 bool IsValid() const { 82 bool IsValid() const {
83 return !nameservers.empty(); 83 return !nameservers.empty();
84 } 84 }
85 85
86 // List of name server addresses. 86 // List of name server addresses.
87 std::vector<IPEndPoint> nameservers; 87 std::vector<IPEndPoint> nameservers;
88 // Suffix search list; used on first lookup when number of dots in given name 88 // Suffix search list; used on first lookup when number of dots in given name
89 // is less than |ndots|. 89 // is less than |ndots|.
90 std::vector<std::string> search; 90 std::vector<std::string> search;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 base::OneShotTimer<DnsConfigService> timer_; 207 base::OneShotTimer<DnsConfigService> 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_net_log_parameters.cc ('k') | net/dns/dns_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698