summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_resolver_js_bindings.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 01:29:30 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 01:29:30 +0000
commit72b4a77cf0b8dda696b0013396c2b601350a79ab (patch)
tree7d5fe5dce7e72fda75ff61fe70cca6911ef70641 /net/proxy/proxy_resolver_js_bindings.h
parent23da84e159af4f91d3ede35ce216c6554e3cea23 (diff)
downloadchromium_src-72b4a77cf0b8dda696b0013396c2b601350a79ab.zip
chromium_src-72b4a77cf0b8dda696b0013396c2b601350a79ab.tar.gz
chromium_src-72b4a77cf0b8dda696b0013396c2b601350a79ab.tar.bz2
Display the proxy PAC javascript errors in the NetLog.
BUG=47226 TEST=Configure chrome with a PAC script that throws errors. Load a URL and should see the javascript error displayed on about:net-internals. Review URL: http://codereview.chromium.org/2978001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_js_bindings.h')
-rw-r--r--net/proxy/proxy_resolver_js_bindings.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/proxy/proxy_resolver_js_bindings.h b/net/proxy/proxy_resolver_js_bindings.h
index b5912c4..ae13584 100644
--- a/net/proxy/proxy_resolver_js_bindings.h
+++ b/net/proxy/proxy_resolver_js_bindings.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,6 +14,7 @@ class MessageLoop;
namespace net {
class HostResolver;
+class NetLog;
struct ProxyResolverRequestContext;
// Interface for the javascript bindings.
@@ -58,12 +59,13 @@ class ProxyResolverJSBindings {
virtual void Shutdown() = 0;
// Creates a default javascript bindings implementation that will:
- // - Send script error messages to LOG(INFO)
- // - Send script alert()s to LOG(INFO)
+ // - Send script error messages to both LOG(INFO), and the NetLog.
+ // - Send script alert()s to both LOG(INFO), and the NetLog.
// - Use the provided host resolver to service dnsResolve().
//
// Note that |host_resolver| will be used in sync mode mode.
- static ProxyResolverJSBindings* CreateDefault(HostResolver* host_resolver);
+ static ProxyResolverJSBindings* CreateDefault(HostResolver* host_resolver,
+ NetLog* net_log);
// Sets details about the currently executing FindProxyForURL() request.
void set_current_request_context(