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

Unified Diff: net/dns/record_parsed.cc

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 6 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.cc
diff --git a/net/dns/record_parsed.cc b/net/dns/record_parsed.cc
index 0ef96460865a1a2fcb742c1d917e29e4625e679f..2cc91212533357e35c99e7c1fbfec0cfceeb5e5f 100644
--- a/net/dns/record_parsed.cc
+++ b/net/dns/record_parsed.cc
@@ -17,6 +17,11 @@ RecordParsed::RecordParsed(const std::string& name, uint16 type, uint16 klass,
time_created_(time_created) {
}
+scoped_ptr<const RecordParsed> RecordParsed::Clone() const {
+ return scoped_ptr<const RecordParsed>(new RecordParsed(
+ name_, type_, klass_, ttl_, rdata_->Clone(), time_created_));
+}
+
RecordParsed::~RecordParsed() {
}

Powered by Google App Engine
This is Rietveld 408576698