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

Unified Diff: mojo/application/public/cpp/service_provider_impl.h

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/application/public/cpp/service_connector.h ('k') | mojo/application/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/public/cpp/service_provider_impl.h
diff --git a/mojo/application/public/cpp/service_provider_impl.h b/mojo/application/public/cpp/service_provider_impl.h
deleted file mode 100644
index 0a9fb77204039e4a185eb55cb558d4ad9c9ac250..0000000000000000000000000000000000000000
--- a/mojo/application/public/cpp/service_provider_impl.h
+++ /dev/null
@@ -1,50 +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_APPLICATION_PUBLIC_CPP_SERVICE_PROVIDER_IMPL_H_
-#define MOJO_APPLICATION_PUBLIC_CPP_SERVICE_PROVIDER_IMPL_H_
-
-#include <string>
-
-#include "mojo/application/public/cpp/lib/interface_factory_connector.h"
-#include "mojo/application/public/cpp/lib/service_connector_registry.h"
-#include "mojo/application/public/interfaces/service_provider.mojom.h"
-#include "mojo/public/cpp/bindings/strong_binding.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);
-
- 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);
-
- StrongBinding<ServiceProvider> binding_;
-
- internal::ServiceConnectorRegistry service_connector_registry_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceProviderImpl);
-};
-
-} // namespace mojo
-
-#endif // MOJO_APPLICATION_PUBLIC_CPP_SERVICE_PROVIDER_IMPL_H_
« no previous file with comments | « mojo/application/public/cpp/service_connector.h ('k') | mojo/application/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698