| 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/ptr_util.h" |
| 9 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 11 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" | 12 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" |
| 12 | 13 |
| 13 namespace net { | 14 namespace net { |
| 14 | 15 |
| 15 // static | 16 // static |
| 16 InProcessMojoProxyResolverFactory* | 17 InProcessMojoProxyResolverFactory* |
| 17 InProcessMojoProxyResolverFactory::GetInstance() { | 18 InProcessMojoProxyResolverFactory::GetInstance() { |
| 18 return base::Singleton<InProcessMojoProxyResolverFactory>::get(); | 19 return base::Singleton<InProcessMojoProxyResolverFactory>::get(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 29 std::unique_ptr<base::ScopedClosureRunner> | 30 std::unique_ptr<base::ScopedClosureRunner> |
| 30 InProcessMojoProxyResolverFactory::CreateResolver( | 31 InProcessMojoProxyResolverFactory::CreateResolver( |
| 31 const std::string& pac_script, | 32 const std::string& pac_script, |
| 32 mojo::InterfaceRequest<interfaces::ProxyResolver> req, | 33 mojo::InterfaceRequest<interfaces::ProxyResolver> req, |
| 33 interfaces::ProxyResolverFactoryRequestClientPtr client) { | 34 interfaces::ProxyResolverFactoryRequestClientPtr client) { |
| 34 factory_->CreateResolver(pac_script, std::move(req), std::move(client)); | 35 factory_->CreateResolver(pac_script, std::move(req), std::move(client)); |
| 35 return nullptr; | 36 return nullptr; |
| 36 } | 37 } |
| 37 | 38 |
| 38 } // namespace net | 39 } // namespace net |
| OLD | NEW |