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

Unified Diff: net/base/host_resolver.h

Issue 15076: Clean up dns prefetch code, and also port it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: use scoper for init & free Created 11 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
« chrome/browser/net/dns_master.h ('K') | « chrome/test/unit/unit_tests.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver.h
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h
index bfae53cfbfb61306ef9eca7954a7a4130627c4e2..6e61eb5fe38bfcd8d2090b93d524bfe53936397d 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);
« chrome/browser/net/dns_master.h ('K') | « chrome/test/unit/unit_tests.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698