From fdc58a9963abb0a9f4cac157b2f3f1eac8e4160d Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 26 Jan 2009 15:10:43 +0000 Subject: Clean up dns prefetch code, and also port it. BUG=5687, 6683 Review URL: http://codereview.chromium.org/15076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8625 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/host_resolver.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'net/base/host_resolver.h') diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h index 1f649f8..fa07708 100644 --- a/net/base/host_resolver.h +++ b/net/base/host_resolver.h @@ -41,10 +41,9 @@ class HostResolver { // // When callback is null, the operation completes synchronously. // - // When callback is non-null, ERR_IO_PENDING is returned if the operation - // could not be completed synchronously, in which case the result code will - // be passed to the callback when available. - // + // When callback is non-null, the operation will be performed asynchronously. + // ERR_IO_PENDING is returned if it has been scheduled successfully. Real + // result code will be passed to the completion callback. int Resolve(const std::string& hostname, int port, AddressList* addresses, CompletionCallback* callback); @@ -74,7 +73,7 @@ class HostMapper { // function while there are no outstanding HostResolver instances. // // NOTE: In most cases, you should use ScopedHostMapper instead, which is -// defined in host_resolver_unittest.h +// defined in scoped_host_resolver.h. // HostMapper* SetHostMapper(HostMapper* host_mapper); #endif -- cgit v1.1