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

Unified Diff: net/dns/dns_query.h

Issue 1546623002: net: add a convenience getter accessor for dns Header to DnsQuery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace memset Created 5 years 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
« no previous file with comments | « no previous file | net/dns/dns_query.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_query.h
diff --git a/net/dns/dns_query.h b/net/dns/dns_query.h
index 14c5b5be8cc467f5007e5e1999627d05e316c4d5..9c44cc841ef38fe5bd8e6d18e03d514695edbcf5 100644
--- a/net/dns/dns_query.h
+++ b/net/dns/dns_query.h
@@ -16,6 +16,10 @@
namespace net {
+namespace dns_protocol {
+struct Header;
+}
+
class IOBufferWithSize;
// Represents on-the-wire DNS query message as an object.
@@ -47,6 +51,9 @@ class NET_EXPORT_PRIVATE DnsQuery {
private:
DnsQuery(const DnsQuery& orig, uint16_t id);
+ // Convenience for header access.
+ dns_protocol::Header* header();
+
// Size of the DNS name (*NOT* hostname) we are trying to resolve; used
// to calculate offsets.
size_t qname_size_;
« no previous file with comments | « no previous file | net/dns/dns_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698