Index: net/dns/dns_response.h |
diff --git a/net/dns/dns_response.h b/net/dns/dns_response.h |
index 78fb73571028ad6fa3e47d2f81eaf1516e373372..587065eb0726fb4e3e60fa86f8dffad53adde9b5 100644 |
--- a/net/dns/dns_response.h |
+++ b/net/dns/dns_response.h |
@@ -67,6 +67,9 @@ class NET_EXPORT_PRIVATE DnsRecordParser { |
// Parses the next resource record into |record|. Returns true if succeeded. |
bool ReadRecord(DnsResourceRecord* record); |
+ // Skip a question section |
szym
2013/04/18 19:12:34
"Returns true if succeeded".
nit: '.' at the end
Noam Samuel
2013/04/19 22:13:23
Done.
|
+ bool SkipQuestion(); |
+ |
private: |
const char* packet_; |
size_t length_; |
@@ -115,6 +118,10 @@ class NET_EXPORT_PRIVATE DnsResponse { |
// packet matches the |query| id and question. |
bool InitParse(int nbytes, const DnsQuery& query); |
+ // Assuming the internal buffer holds |nbytes| bytes, initialize the parser |
+ // without matching it against an existing query. |
+ bool InitParseWithoutQuery(int nbytes); |
+ |
// Returns true if response is valid, that is, after successful InitParse. |
bool IsValid() const; |
@@ -158,3 +165,4 @@ class NET_EXPORT_PRIVATE DnsResponse { |
} // namespace net |
#endif // NET_DNS_DNS_RESPONSE_H_ |
+ |
szym
2013/04/18 19:12:34
Remove the line. Lint might erroneously complain.
Noam Samuel
2013/04/19 22:13:23
Done.
|