diff options
Diffstat (limited to 'net/proxy/proxy_info.h')
-rw-r--r-- | net/proxy/proxy_info.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/proxy/proxy_info.h b/net/proxy/proxy_info.h index d0fa523..cea21e2 100644 --- a/net/proxy/proxy_info.h +++ b/net/proxy/proxy_info.h @@ -7,6 +7,7 @@ #include <string> +#include "base/time.h" #include "net/base/net_export.h" #include "net/base/net_log.h" #include "net/proxy/proxy_config.h" @@ -119,6 +120,14 @@ class NET_EXPORT ProxyInfo { ProxyConfig::ID config_id() const { return config_id_; } + base::TimeTicks proxy_resolve_start_time() const { + return proxy_resolve_start_time_; + } + + base::TimeTicks proxy_resolve_end_time() const { + return proxy_resolve_end_time_; + } + private: friend class ProxyService; @@ -147,6 +156,11 @@ class NET_EXPORT ProxyInfo { // Whether we used a PAC script for resolving the proxy. bool did_use_pac_script_; + + // How long it took to resolve the proxy. Times are both null if proxy was + // determined synchronously without running a PAC. + base::TimeTicks proxy_resolve_start_time_; + base::TimeTicks proxy_resolve_end_time_; }; } // namespace net |