Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Side by Side Diff: net/proxy/in_process_mojo_proxy_resolver_factory.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" 11 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // static 15 // static
16 InProcessMojoProxyResolverFactory* 16 InProcessMojoProxyResolverFactory*
17 InProcessMojoProxyResolverFactory::GetInstance() { 17 InProcessMojoProxyResolverFactory::GetInstance() {
18 return base::Singleton<InProcessMojoProxyResolverFactory>::get(); 18 return base::Singleton<InProcessMojoProxyResolverFactory>::get();
19 } 19 }
20 20
21 InProcessMojoProxyResolverFactory::InProcessMojoProxyResolverFactory() { 21 InProcessMojoProxyResolverFactory::InProcessMojoProxyResolverFactory() {
22 mojo::MakeStrongBinding(base::MakeUnique<MojoProxyResolverFactoryImpl>(), 22 mojo::MakeStrongBinding(base::MakeUnique<MojoProxyResolverFactoryImpl>(),
23 mojo::GetProxy(&factory_)); 23 mojo::MakeRequest(&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 std::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
OLDNEW
« no previous file with comments | « net/dns/mojo_host_resolver_impl_unittest.cc ('k') | net/proxy/mojo_proxy_resolver_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698