diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-17 20:28:24 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-17 20:28:24 +0000 |
commit | 6bd32db110086576d44c4230a1e7bb53f3d20630 (patch) | |
tree | 74fcf2ef37e619983c8f6b92927d85fb9dda9a00 /net/proxy/proxy_service.h | |
parent | 9de09f8474427fe1341201b946d9afe20ab01b07 (diff) | |
download | chromium_src-6bd32db110086576d44c4230a1e7bb53f3d20630.zip chromium_src-6bd32db110086576d44c4230a1e7bb53f3d20630.tar.gz chromium_src-6bd32db110086576d44c4230a1e7bb53f3d20630.tar.bz2 |
Instrument ProxyService and InitProxyResolver with LoadLog.
BUG=http://crbug.com/14478
Review URL: http://codereview.chromium.org/172020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_service.h')
-rw-r--r-- | net/proxy/proxy_service.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h index 994cb5a..483e055 100644 --- a/net/proxy/proxy_service.h +++ b/net/proxy/proxy_service.h @@ -103,6 +103,13 @@ class ProxyService { // |new_proxy_config_service|. void ResetConfigService(ProxyConfigService* new_proxy_config_service); + // Returns the log for the most recent WPAD + PAC initialization. + // (This shows how much time was spent downloading and parsing the + // PAC scripts for the current configuration). + LoadLog* init_proxy_resolver_log() const { + return init_proxy_resolver_log_; + } + // Creates a proxy service using the specified settings. If |pc| is NULL then // the system's default proxy settings will be used (on Windows this will // use IE's settings). @@ -224,6 +231,9 @@ class ProxyService { // Helper to download the PAC script (wpad + custom) and apply fallback rules. scoped_ptr<InitProxyResolver> init_proxy_resolver_; + // Log from the *last* time |init_proxy_resolver_.Init()| was called, or NULL. + scoped_refptr<LoadLog> init_proxy_resolver_log_; + scoped_ptr<ProxyConfigService> config_service_; scoped_ptr<ProxyResolver> resolver_; |