summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_resolver_v8.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 20:55:17 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 20:55:17 +0000
commit2447640cc25951a7522c0b655f3482ca9cc1c27b (patch)
treed54947c9fb370362b387ade837869eceb2d9ad2f /net/proxy/proxy_resolver_v8.h
parent28900505e2304ff77769f8fce09b575eab33fc85 (diff)
downloadchromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.zip
chromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.tar.gz
chromium_src-2447640cc25951a7522c0b655f3482ca9cc1c27b.tar.bz2
Reference-count the data used by PAC scripts, so it is shared between threads.
BUG=49396 Review URL: http://codereview.chromium.org/2836060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_v8.h')
-rw-r--r--net/proxy/proxy_resolver_v8.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/proxy/proxy_resolver_v8.h b/net/proxy/proxy_resolver_v8.h
index 20f31fc..8d7a231 100644
--- a/net/proxy/proxy_resolver_v8.h
+++ b/net/proxy/proxy_resolver_v8.h
@@ -51,6 +51,9 @@ class ProxyResolverV8 : public ProxyResolver {
virtual void CancelRequest(RequestHandle request);
virtual void PurgeMemory();
virtual void Shutdown();
+ virtual int SetPacScript(
+ const scoped_refptr<ProxyResolverScriptData>& script_data,
+ CompletionCallback* /*callback*/);
ProxyResolverJSBindings* js_bindings() const { return js_bindings_.get(); }
@@ -59,11 +62,6 @@ class ProxyResolverV8 : public ProxyResolver {
// script. It corresponds with the data from the last call to
// SetPacScript().
class Context;
-
- // ProxyResolver implementation:
- virtual int SetPacScript(const GURL& /*pac_url*/,
- const string16& pac_script,
- CompletionCallback* /*callback*/);
scoped_ptr<Context> context_;
scoped_ptr<ProxyResolverJSBindings> js_bindings_;