diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 23:13:15 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 23:13:15 +0000 |
commit | e3dfa2a3ce1f897eff53d69f8b6a0bc247069e6c (patch) | |
tree | f4e921df92574c3d069e52edd6b3ce2fe5f120fa /net/proxy | |
parent | dc5e89230025a8202e0314410a388ad91138020c (diff) | |
download | chromium_src-e3dfa2a3ce1f897eff53d69f8b6a0bc247069e6c.zip chromium_src-e3dfa2a3ce1f897eff53d69f8b6a0bc247069e6c.tar.gz chromium_src-e3dfa2a3ce1f897eff53d69f8b6a0bc247069e6c.tar.bz2 |
Add skeleton for an about:net-internal page.
This page contains low-level debug information that is of interest to power users, and bug investigators.
The output can be filtered by using special sub-URLs.
The sub-URLs themselves are listed when visiting about:net-internal, but to give an idea:
about:net-internal -- everything
about:net-internal/proxyservice -- all things proxy
about:net-internal/proxyservice.config -- current settings
about:net-internal/hostresolver.hostcache -- dns cache
BUG=http://crbug.com/14478
R=darin
Review URL: http://codereview.chromium.org/173024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r-- | net/proxy/proxy_service.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h index cd76453..b38938f 100644 --- a/net/proxy/proxy_service.h +++ b/net/proxy/proxy_service.h @@ -107,6 +107,16 @@ class ProxyService : public base::RefCountedThreadSafe<ProxyService> { return init_proxy_resolver_log_; } + // Returns true if we have called UpdateConfig() at least once. + bool config_has_been_initialized() const { + return config_.id() != ProxyConfig::INVALID_ID; + } + + // Returns the last configuration fetched from ProxyConfigService. + const ProxyConfig& config() { + return config_; + } + // 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). @@ -162,11 +172,6 @@ class ProxyService : public base::RefCountedThreadSafe<ProxyService> { // Identifies the proxy configuration. ProxyConfig::ID config_id() const { return config_.id(); } - // Returns true if we have called UpdateConfig() at least once. - bool config_has_been_initialized() const { - return config_.id() != ProxyConfig::INVALID_ID; - } - // Checks to see if the proxy configuration changed, and then updates config_ // to reference the new configuration. void UpdateConfig(); |