summaryrefslogtreecommitdiffstats
path: root/net/base/mock_host_resolver.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-16 19:42:46 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-16 19:42:46 +0000
commit2152600d98b5c802fec1caba84ae9d0cb16af235 (patch)
tree37be46839818f20cfefecf2a284e9352ead55bb8 /net/base/mock_host_resolver.h
parenta643d62e025c82ad920117e833508f5def0d1deb (diff)
downloadchromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.zip
chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.gz
chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.bz2
Log the OS error that getaddrinfo() failed with.
- Display it on the about:net-internals page - Collect it in the histogram Net.OSErrorsForGetAddrinfo. Review URL: http://codereview.chromium.org/2134004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/mock_host_resolver.h')
-rw-r--r--net/base/mock_host_resolver.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/base/mock_host_resolver.h b/net/base/mock_host_resolver.h
index ad89a48..1fe4f06 100644
--- a/net/base/mock_host_resolver.h
+++ b/net/base/mock_host_resolver.h
@@ -143,7 +143,8 @@ class RuleBasedHostResolverProc : public HostResolverProc {
virtual int Resolve(const std::string& host,
AddressFamily address_family,
HostResolverFlags host_resolver_flags,
- AddressList* addrlist);
+ AddressList* addrlist,
+ int* os_error);
private:
~RuleBasedHostResolverProc();
@@ -168,10 +169,11 @@ class WaitingHostResolverProc : public HostResolverProc {
virtual int Resolve(const std::string& host,
AddressFamily address_family,
HostResolverFlags host_resolver_flags,
- AddressList* addrlist) {
+ AddressList* addrlist,
+ int* os_error) {
event_.Wait();
return ResolveUsingPrevious(host, address_family, host_resolver_flags,
- addrlist);
+ addrlist, os_error);
}
private: