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

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: Ready for test-drive. 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..09ffdf43d7d4a4621ea547f667e4076606c8b82b 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;
@@ -130,6 +132,11 @@ class NET_EXPORT_PRIVATE DnsResponse {
DISALLOW_COPY_AND_ASSIGN(DnsResponse);
};
+// Extracts an AddressList from a DnsResponse. Returns true if succeeded.
+bool DnsResponseToAddressList(const DnsResponse* response,
+ AddressList* addr_list,
+ base::TimeDelta* ttl);
+
} // namespace net
#endif // NET_DNS_DNS_RESPONSE_H_

Powered by Google App Engine
This is Rietveld 408576698