summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 23:13:15 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 23:13:15 +0000
commite3dfa2a3ce1f897eff53d69f8b6a0bc247069e6c (patch)
treef4e921df92574c3d069e52edd6b3ce2fe5f120fa /net/proxy
parentdc5e89230025a8202e0314410a388ad91138020c (diff)
downloadchromium_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.h15
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();