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

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

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 #ifndef COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
6 #define COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
7
8 #include "base/macros.h"
9 #include "net/interfaces/proxy_resolver_service.mojom.h"
10 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h"
11 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
12
13 namespace proxy_resolver {
14
15 class ProxyResolverApp
16 : public mojo::ApplicationDelegate,
17 public mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory> {
18 public:
19 ProxyResolverApp();
20 ~ProxyResolverApp() override;
21
22 private:
23 // mojo::ApplicationDelegate:
24 bool ConfigureIncomingConnection(
25 mojo::ApplicationConnection* connection) override;
26
27 // mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory>:
28 void Create(mojo::ApplicationConnection* connection,
29 mojo::InterfaceRequest<net::interfaces::ProxyResolverFactory>
30 request) override;
31
32 DISALLOW_COPY_AND_ASSIGN(ProxyResolverApp);
33 };
34
35 } // namespace proxy_resolver
36
37 #endif // COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698