| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 InProcessMojoProxyResolverFactory::InProcessMojoProxyResolverFactory() { | 21 InProcessMojoProxyResolverFactory::InProcessMojoProxyResolverFactory() { |
| 22 mojo::MakeStrongBinding(base::MakeUnique<MojoProxyResolverFactoryImpl>(), | 22 mojo::MakeStrongBinding(base::MakeUnique<MojoProxyResolverFactoryImpl>(), |
| 23 mojo::GetProxy(&factory_)); | 23 mojo::GetProxy(&factory_)); |
| 24 } | 24 } |
| 25 | 25 |
| 26 InProcessMojoProxyResolverFactory::~InProcessMojoProxyResolverFactory() = | 26 InProcessMojoProxyResolverFactory::~InProcessMojoProxyResolverFactory() = |
| 27 default; | 27 default; |
| 28 | 28 |
| 29 std::unique_ptr<base::ScopedClosureRunner> | 29 std::unique_ptr<base::ScopedClosureRunner> |
| 30 InProcessMojoProxyResolverFactory::CreateResolver( | 30 InProcessMojoProxyResolverFactory::CreateResolver( |
| 31 const mojo::String& pac_script, | 31 const std::string& pac_script, |
| 32 mojo::InterfaceRequest<interfaces::ProxyResolver> req, | 32 mojo::InterfaceRequest<interfaces::ProxyResolver> req, |
| 33 interfaces::ProxyResolverFactoryRequestClientPtr client) { | 33 interfaces::ProxyResolverFactoryRequestClientPtr client) { |
| 34 factory_->CreateResolver(pac_script, std::move(req), std::move(client)); | 34 factory_->CreateResolver(pac_script, std::move(req), std::move(client)); |
| 35 return nullptr; | 35 return nullptr; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace net | 38 } // namespace net |
| OLD | NEW |