Index: content/renderer/mojo/blink_service_registry_impl.cc |
diff --git a/content/renderer/mojo/blink_service_registry_impl.cc b/content/renderer/mojo/blink_service_registry_impl.cc |
deleted file mode 100644 |
index 408f6de806457d3181f44f98af4aee7ddf91c258..0000000000000000000000000000000000000000 |
--- a/content/renderer/mojo/blink_service_registry_impl.cc |
+++ /dev/null |
@@ -1,41 +0,0 @@ |
-// Copyright 2016 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 "content/renderer/mojo/blink_service_registry_impl.h" |
- |
-#include <utility> |
- |
-#include "base/bind.h" |
-#include "base/single_thread_task_runner.h" |
-#include "base/threading/thread_task_runner_handle.h" |
-#include "services/shell/public/cpp/interface_provider.h" |
- |
-namespace content { |
- |
-BlinkServiceRegistryImpl::BlinkServiceRegistryImpl( |
- base::WeakPtr<shell::InterfaceProvider> remote_interfaces) |
- : remote_interfaces_(remote_interfaces), |
- main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
- weak_ptr_factory_(this) {} |
- |
-BlinkServiceRegistryImpl::~BlinkServiceRegistryImpl() = default; |
- |
-void BlinkServiceRegistryImpl::connectToRemoteService( |
- const char* name, |
- mojo::ScopedMessagePipeHandle handle) { |
- if (!main_thread_task_runner_->BelongsToCurrentThread()) { |
- main_thread_task_runner_->PostTask( |
- FROM_HERE, base::Bind(&BlinkServiceRegistryImpl::connectToRemoteService, |
- weak_ptr_factory_.GetWeakPtr(), name, |
- base::Passed(&handle))); |
- return; |
- } |
- |
- if (!remote_interfaces_) |
- return; |
- |
- remote_interfaces_->GetInterface(name, std::move(handle)); |
-} |
- |
-} // namespace content |