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

Unified Diff: net/dns/dns_hosts.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/dns/dns_hosts.h
diff --git a/net/dns/dns_hosts.h b/net/dns/dns_hosts.h
index c2b290907ad78d44a5b762b7f86f86a504e54505..aa60a4d99a1c6736453308659360c50a61db4d92 100644
--- a/net/dns/dns_hosts.h
+++ b/net/dns/dns_hosts.h
@@ -18,13 +18,13 @@
#include "net/base/net_util.h" // can't forward-declare IPAddressNumber
namespace net {
- typedef std::pair<std::string, AddressFamily> DnsHostsKey;
+typedef std::pair<std::string, AddressFamily> DnsHostsKey;
};
namespace BASE_HASH_NAMESPACE {
#if defined(COMPILER_GCC)
-template<>
+template <>
struct hash<net::DnsHostsKey> {
std::size_t operator()(const net::DnsHostsKey& key) const {
hash<base::StringPiece> string_piece_hash;
@@ -64,16 +64,13 @@ typedef std::map<DnsHostsKey, IPAddressNumber> DnsHosts;
// Parses |contents| (as read from /etc/hosts or equivalent) and stores results
// in |dns_hosts|. Invalid lines are ignored (as in most implementations).
-void NET_EXPORT_PRIVATE ParseHosts(const std::string& contents,
- DnsHosts* dns_hosts);
+void NET_EXPORT_PRIVATE
+ ParseHosts(const std::string& contents, DnsHosts* dns_hosts);
// As above but reads the file pointed to by |path|.
-bool NET_EXPORT_PRIVATE ParseHostsFile(const base::FilePath& path,
- DnsHosts* dns_hosts);
-
-
+bool NET_EXPORT_PRIVATE
+ ParseHostsFile(const base::FilePath& path, DnsHosts* dns_hosts);
} // namespace net
#endif // NET_DNS_DNS_HOSTS_H_
-

Powered by Google App Engine
This is Rietveld 408576698