| Index: third_party/mojo/src/mojo/public/cpp/application/service_provider_impl.h
|
| diff --git a/third_party/mojo/src/mojo/public/cpp/application/service_provider_impl.h b/third_party/mojo/src/mojo/public/cpp/application/service_provider_impl.h
|
| deleted file mode 100644
|
| index ed4de3a9312f32b18f989b92f4bce69f8a5e70ed..0000000000000000000000000000000000000000
|
| --- a/third_party/mojo/src/mojo/public/cpp/application/service_provider_impl.h
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -// Copyright 2014 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 MOJO_PUBLIC_APPLICATION_SERVICE_PROVIDER_IMPL_H_
|
| -#define MOJO_PUBLIC_APPLICATION_SERVICE_PROVIDER_IMPL_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "mojo/public/cpp/application/lib/interface_factory_connector.h"
|
| -#include "mojo/public/cpp/application/lib/service_connector_registry.h"
|
| -#include "mojo/public/cpp/bindings/binding.h"
|
| -#include "mojo/public/interfaces/application/service_provider.mojom.h"
|
| -
|
| -namespace mojo {
|
| -
|
| -// Implements a registry that can be used to expose services to another app.
|
| -class ServiceProviderImpl : public ServiceProvider {
|
| - public:
|
| - ServiceProviderImpl();
|
| - explicit ServiceProviderImpl(InterfaceRequest<ServiceProvider> request);
|
| - ~ServiceProviderImpl() override;
|
| -
|
| - void Bind(InterfaceRequest<ServiceProvider> request);
|
| - // Disconnect this service provider and put it in a state where it can be
|
| - // rebound to a new request.
|
| - void Close();
|
| -
|
| - template <typename Interface>
|
| - void AddService(InterfaceFactory<Interface>* factory) {
|
| - SetServiceConnectorForName(
|
| - new internal::InterfaceFactoryConnector<Interface>(factory),
|
| - Interface::Name_);
|
| - }
|
| -
|
| - private:
|
| - // Overridden from ServiceProvider:
|
| - void ConnectToService(const String& service_name,
|
| - ScopedMessagePipeHandle client_handle) override;
|
| -
|
| - void SetServiceConnectorForName(ServiceConnector* service_connector,
|
| - const std::string& interface_name);
|
| -
|
| - Binding<ServiceProvider> binding_;
|
| -
|
| - internal::ServiceConnectorRegistry service_connector_registry_;
|
| -
|
| - MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceProviderImpl);
|
| -};
|
| -
|
| -} // namespace mojo
|
| -
|
| -#endif // MOJO_PUBLIC_APPLICATION_SERVICE_PROVIDER_IMPL_H_
|
|
|