OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/proxy_resolver/proxy_resolver_app.h" |
| 6 |
| 7 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" |
| 8 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio
n.h" |
| 9 |
| 10 namespace proxy_resolver { |
| 11 |
| 12 ProxyResolverApp::ProxyResolverApp() { |
| 13 } |
| 14 |
| 15 ProxyResolverApp::~ProxyResolverApp() { |
| 16 } |
| 17 |
| 18 bool ProxyResolverApp::ConfigureIncomingConnection( |
| 19 mojo::ApplicationConnection* connection) { |
| 20 connection->AddService(this); |
| 21 return true; |
| 22 } |
| 23 |
| 24 void ProxyResolverApp::Create( |
| 25 mojo::ApplicationConnection* connection, |
| 26 mojo::InterfaceRequest<net::interfaces::ProxyResolverFactory> request) { |
| 27 // The lifetime of this instance is bound to that of the message pipe. |
| 28 new net::MojoProxyResolverFactoryImpl(request.Pass()); |
| 29 } |
| 30 |
| 31 } // namespace proxy_resolver |
OLD | NEW |