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

Unified Diff: mojo/application/public/cpp/lib/service_provider_impl.cc

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
Index: mojo/application/public/cpp/lib/service_provider_impl.cc
diff --git a/mojo/application/public/cpp/lib/service_provider_impl.cc b/mojo/application/public/cpp/lib/service_provider_impl.cc
deleted file mode 100644
index 03e57efbfb139dbfbe00632af00070ff0f765473..0000000000000000000000000000000000000000
--- a/mojo/application/public/cpp/lib/service_provider_impl.cc
+++ /dev/null
@@ -1,43 +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.
-
-#include <utility>
-
-#include "mojo/application/public/cpp/service_connector.h"
-#include "mojo/application/public/cpp/service_provider_impl.h"
-#include "mojo/public/cpp/environment/logging.h"
-
-namespace mojo {
-
-ServiceProviderImpl::ServiceProviderImpl() : binding_(this) {
-}
-
-ServiceProviderImpl::ServiceProviderImpl(
- InterfaceRequest<ServiceProvider> request)
- : binding_(this, std::move(request)) {}
-
-ServiceProviderImpl::~ServiceProviderImpl() {
-}
-
-void ServiceProviderImpl::Bind(InterfaceRequest<ServiceProvider> request) {
- binding_.Bind(std::move(request));
-}
-
-void ServiceProviderImpl::ConnectToService(
- const String& service_name,
- ScopedMessagePipeHandle client_handle) {
- // TODO(beng): perhaps take app connection thru ctor so that we can pass
- // ApplicationConnection through?
- service_connector_registry_.ConnectToService(nullptr, service_name,
- std::move(client_handle));
-}
-
-void ServiceProviderImpl::SetServiceConnectorForName(
- ServiceConnector* service_connector,
- const std::string& interface_name) {
- service_connector_registry_.SetServiceConnectorForName(service_connector,
- interface_name);
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/application/public/cpp/lib/service_connector_registry.cc ('k') | mojo/application/public/cpp/lib/service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698