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

Side by Side Diff: components/proxy_resolver/proxy_resolver_app.cc

Issue 1128453004: Embed a simple Mojo shell in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698