diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 15:10:43 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 15:10:43 +0000 |
commit | fdc58a9963abb0a9f4cac157b2f3f1eac8e4160d (patch) | |
tree | 889dd032162f3c876c2bdcaa84a8b3717f134995 /net/base/host_resolver.h | |
parent | 9127ca05f3d1cc8308a35429876b18090814ae73 (diff) | |
download | chromium_src-fdc58a9963abb0a9f4cac157b2f3f1eac8e4160d.zip chromium_src-fdc58a9963abb0a9f4cac157b2f3f1eac8e4160d.tar.gz chromium_src-fdc58a9963abb0a9f4cac157b2f3f1eac8e4160d.tar.bz2 |
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
Diffstat (limited to 'net/base/host_resolver.h')
-rw-r--r-- | net/base/host_resolver.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 |