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 #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_ |
OLD | NEW |