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

Unified Diff: net/dns/record_parsed.h

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 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/record_parsed.h
diff --git a/net/dns/record_parsed.h b/net/dns/record_parsed.h
index 5d35ff319bbed0cae39b5b44757ada6a06e5f5da..d8738521fd3c73dc516f5aefb8fa5d89fee6f85b 100644
--- a/net/dns/record_parsed.h
+++ b/net/dns/record_parsed.h
@@ -25,6 +25,7 @@ class NET_EXPORT_PRIVATE RecordParsed {
// All records are inherently immutable. Return a const pointer.
static scoped_ptr<const RecordParsed> CreateFrom(DnsRecordParser* parser,
base::Time time_created);
+ scoped_ptr<const RecordParsed> Clone() const;
const std::string& name() const { return name_; }
uint16 type() const { return type_; }
@@ -49,7 +50,7 @@ class NET_EXPORT_PRIVATE RecordParsed {
uint32 ttl, scoped_ptr<const RecordRdata> rdata,
base::Time time_created);
- std::string name_; // in dotted form
+ const std::string name_; // in dotted form
const uint16 type_;
const uint16 klass_;
const uint32 ttl_;

Powered by Google App Engine
This is Rietveld 408576698