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

Unified Diff: net/dns/mdns_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/mdns_cache.h
diff --git a/net/dns/mdns_cache.h b/net/dns/mdns_cache.h
index 6a38fc8f0e28dc4d99cbcce35681cdec5ecebe5b..62703aac1e3b11f89be664d8413fecf54f648158 100644
--- a/net/dns/mdns_cache.h
+++ b/net/dns/mdns_cache.h
@@ -39,11 +39,12 @@ class NET_EXPORT_PRIVATE MDnsCache {
bool operator==(const Key& key) const;
unsigned type() const { return type_; }
- const std::string& name() const { return name_; }
+ const std::string& name() const { return name_; }
const std::string& optional() const { return optional_; }
// Create the cache key corresponding to |record|.
static Key CreateFor(const RecordParsed* record);
+
private:
unsigned type_;
std::string name_;
@@ -52,12 +53,7 @@ class NET_EXPORT_PRIVATE MDnsCache {
typedef base::Callback<void(const RecordParsed*)> RecordRemovedCallback;
- enum UpdateType {
- RecordAdded,
- RecordChanged,
- RecordRemoved,
- NoChange
- };
+ enum UpdateType { RecordAdded, RecordChanged, RecordRemoved, NoChange };
MDnsCache();
~MDnsCache();
@@ -105,8 +101,7 @@ class NET_EXPORT_PRIVATE MDnsCache {
// Get optional part of the DNS key for shared records. For example, in PTR
// records this is the pointed domain, since multiple PTR records may exist
// for the same name.
- static std::string GetOptionalFieldForRecord(
- const RecordParsed* record);
+ static std::string GetOptionalFieldForRecord(const RecordParsed* record);
RecordMap mdns_cache_;

Powered by Google App Engine
This is Rietveld 408576698