summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_service.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 00:25:12 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 00:25:12 +0000
commitec08bb23238e41b66daa676c3c55f23544a0de14 (patch)
treeaef939a8d5cccb67d037d8d055380a82e95bbfaa /net/proxy/proxy_service.h
parentdb471b330fc82a9f450807ec1f4307c29dda23c4 (diff)
downloadchromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.zip
chromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.tar.gz
chromium_src-ec08bb23238e41b66daa676c3c55f23544a0de14.tar.bz2
Add a "LoadLog" parameter to transactions, hostresolver, clientsocketpool and proyxservice.This dependency comes from the parent URLRequest, and is used as a container for per-request profiling data.This change is strictly a no-op refactor -- the parameter is unused, and LoadLog does nothing.BUG=http://crbug.com/14478TEST=none -- just needs to compile and pass existing tests.DESIGN=<http://docs.google.com/Doc?id=dfhcnb2v_21gbtrcpr3&hl=en>
Review URL: http://codereview.chromium.org/126303 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_service.h')
-rw-r--r--net/proxy/proxy_service.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h
index cc678f2..92e68c7 100644
--- a/net/proxy/proxy_service.h
+++ b/net/proxy/proxy_service.h
@@ -25,6 +25,7 @@ class URLRequestContext;
namespace net {
class InitProxyResolver;
+class LoadLog;
class ProxyConfigService;
class ProxyResolver;
class ProxyScriptFetcher;
@@ -63,7 +64,10 @@ class ProxyService {
// 3. WPAD auto-detection
//
// TODO(eroman): see http://crbug.com/9985; the outline above is too simple.
- int ResolveProxy(const GURL& url,
+ //
+ // Profiling information for the request is saved to |load_log| if non-NULL.
+ int ResolveProxy(LoadLog* load_log,
+ const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
PacRequest** pac_request);
@@ -79,7 +83,9 @@ class ProxyService {
//
// Returns ERR_FAILED if there is not another proxy config to try.
//
- int ReconsiderProxyAfterError(const GURL& url,
+ // Profiling information for the request is saved to |load_log| if non-NULL.
+ int ReconsiderProxyAfterError(LoadLog* load_log,
+ const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
PacRequest** pac_request);
@@ -262,12 +268,14 @@ class SyncProxyServiceHelper
SyncProxyServiceHelper(MessageLoop* io_message_loop,
ProxyService* proxy_service);
- int ResolveProxy(const GURL& url, ProxyInfo* proxy_info);
- int ReconsiderProxyAfterError(const GURL& url, ProxyInfo* proxy_info);
+ int ResolveProxy(LoadLog* load_log, const GURL& url, ProxyInfo* proxy_info);
+ int ReconsiderProxyAfterError(LoadLog* load_log,
+ const GURL& url,
+ ProxyInfo* proxy_info);
private:
- void StartAsyncResolve(const GURL& url);
- void StartAsyncReconsider(const GURL& url);
+ void StartAsyncResolve(LoadLog* load_log, const GURL& url);
+ void StartAsyncReconsider(LoadLog* load_log, const GURL& url);
void OnCompletion(int result);