| Index: components/proxy_resolver/proxy_resolver_app.h
|
| diff --git a/components/proxy_resolver/proxy_resolver_app.h b/components/proxy_resolver/proxy_resolver_app.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2e9ad36ae3bf499359f69eab3cd5c75e58606847
|
| --- /dev/null
|
| +++ b/components/proxy_resolver/proxy_resolver_app.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
|
| +#define COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "net/interfaces/proxy_resolver_service.mojom.h"
|
| +#include "third_party/mojo/src/mojo/public/cpp/application/application_delegate.h"
|
| +#include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
|
| +
|
| +namespace proxy_resolver {
|
| +
|
| +class ProxyResolverApp
|
| + : public mojo::ApplicationDelegate,
|
| + public mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory> {
|
| + public:
|
| + ProxyResolverApp();
|
| + ~ProxyResolverApp() override;
|
| +
|
| + private:
|
| + // mojo::ApplicationDelegate:
|
| + bool ConfigureIncomingConnection(
|
| + mojo::ApplicationConnection* connection) override;
|
| +
|
| + // mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory>:
|
| + void Create(mojo::ApplicationConnection* connection,
|
| + mojo::InterfaceRequest<net::interfaces::ProxyResolverFactory>
|
| + request) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ProxyResolverApp);
|
| +};
|
| +
|
| +} // namespace proxy_resolver
|
| +
|
| +#endif // COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
|
|
|