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

Unified Diff: chrome/browser/net/dns_master.cc

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 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: chrome/browser/net/dns_master.cc
===================================================================
--- chrome/browser/net/dns_master.cc (revision 18213)
+++ chrome/browser/net/dns_master.cc (working copy)
@@ -25,12 +25,13 @@
class DnsMaster::LookupRequest {
public:
LookupRequest(DnsMaster* master,
- net::HostResolver* /*host_resolver*/,
+ net::HostResolver* host_resolver,
const std::string& hostname)
: ALLOW_THIS_IN_INITIALIZER_LIST(
net_callback_(this, &LookupRequest::OnLookupFinished)),
master_(master),
- hostname_(hostname) {
+ hostname_(hostname),
+ resolver_(host_resolver) {
}
bool Start() {
@@ -50,7 +51,7 @@
DnsMaster* master_; // Master which started us.
const std::string hostname_; // Hostname to resolve.
- net::HostResolver resolver_;
+ net::SingleRequestHostResolver resolver_;
net::AddressList addresses_;
DISALLOW_COPY_AND_ASSIGN(LookupRequest);

Powered by Google App Engine
This is Rietveld 408576698