OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/proxy/in_process_mojo_proxy_resolver_factory.h" | 5 #include "net/proxy/in_process_mojo_proxy_resolver_factory.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" | 8 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 InProcessMojoProxyResolverFactory::~InProcessMojoProxyResolverFactory() = | 25 InProcessMojoProxyResolverFactory::~InProcessMojoProxyResolverFactory() = |
26 default; | 26 default; |
27 | 27 |
28 scoped_ptr<base::ScopedClosureRunner> | 28 scoped_ptr<base::ScopedClosureRunner> |
29 InProcessMojoProxyResolverFactory::CreateResolver( | 29 InProcessMojoProxyResolverFactory::CreateResolver( |
30 const mojo::String& pac_script, | 30 const mojo::String& pac_script, |
31 mojo::InterfaceRequest<interfaces::ProxyResolver> req, | 31 mojo::InterfaceRequest<interfaces::ProxyResolver> req, |
32 interfaces::HostResolverPtr host_resolver, | 32 interfaces::HostResolverPtr host_resolver, |
| 33 interfaces::ProxyResolverErrorObserverPtr error_observer, |
33 interfaces::ProxyResolverFactoryRequestClientPtr client) { | 34 interfaces::ProxyResolverFactoryRequestClientPtr client) { |
34 factory_->CreateResolver(pac_script, req.Pass(), host_resolver.Pass(), | 35 factory_->CreateResolver(pac_script, req.Pass(), host_resolver.Pass(), |
35 client.Pass()); | 36 error_observer.Pass(), client.Pass()); |
36 return nullptr; | 37 return nullptr; |
37 } | 38 } |
38 | 39 |
39 } // namespace net | 40 } // namespace net |
OLD | NEW |