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

Unified Diff: net/dns/host_cache.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/host_cache.h
diff --git a/net/dns/host_cache.h b/net/dns/host_cache.h
index e8628fb04ecbc1b64b6480502d41b94d7cb11a00..2b9f40986265f3da37cf5d90532d4e1550a9c59b 100644
--- a/net/dns/host_cache.h
+++ b/net/dns/host_cache.h
@@ -39,7 +39,8 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
};
struct Key {
- Key(const std::string& hostname, AddressFamily address_family,
+ Key(const std::string& hostname,
+ AddressFamily address_family,
HostResolverFlags host_resolver_flags)
: hostname(hostname),
address_family(address_family),
@@ -69,7 +70,9 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
bool onGet) const;
};
- typedef ExpiringCache<Key, Entry, base::TimeTicks,
+ typedef ExpiringCache<Key,
+ Entry,
+ base::TimeTicks,
std::less<base::TimeTicks>,
EvictionHandler> EntryMap;
@@ -108,9 +111,7 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
FRIEND_TEST_ALL_PREFIXES(HostCacheTest, NoCache);
// Returns true if this HostCache can contain no entries.
- bool caching_is_disabled() const {
- return entries_.max_entries() == 0;
- }
+ bool caching_is_disabled() const { return entries_.max_entries() == 0; }
// Map from hostname (presumably in lowercase canonicalized format) to
// a resolved result entry.

Powered by Google App Engine
This is Rietveld 408576698