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

Unified Diff: net/dns/dns_response.h

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ClientSocketFactory lifetime. Move ScopedAllowIO to StartWatch. Added DnsTask logging. Created 8 years, 10 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/dns_response.h
diff --git a/net/dns/dns_response.h b/net/dns/dns_response.h
index 764517a37047354dd2fd9fbd8e6c57e4b0e41294..1f55e374ddf1364d1e826cdc7d4ac028700fc154 100644
--- a/net/dns/dns_response.h
+++ b/net/dns/dns_response.h
@@ -11,11 +11,13 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/string_piece.h"
+#include "base/time.h"
#include "net/base/net_export.h"
#include "net/base/net_util.h"
namespace net {
+class AddressList;
class DnsQuery;
class IOBufferWithSize;
@@ -116,6 +118,9 @@ class NET_EXPORT_PRIVATE DnsResponse {
// This operation is idempotent.
DnsRecordParser Parser() const;
+ // Extracts an AddressList from this response. Returns true if succeeded.
+ bool ParseAddressList(AddressList* addr_list, base::TimeDelta* ttl) const;
mmenke 2012/02/14 18:46:00 nit: Suggest you rename this function to ParseAdd
+
private:
// Convenience for header access.
const dns_protocol::Header* header() const;

Powered by Google App Engine
This is Rietveld 408576698