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

Unified Diff: content/renderer/mojo/blink_service_registry_impl.h

Issue 2196843003: Blink ServiceRegistry -> InterfaceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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: content/renderer/mojo/blink_service_registry_impl.h
diff --git a/content/renderer/mojo/blink_service_registry_impl.h b/content/renderer/mojo/blink_service_registry_impl.h
deleted file mode 100644
index 2fc08ae35f3e829ec6e6a2d4188fad49309cce0e..0000000000000000000000000000000000000000
--- a/content/renderer/mojo/blink_service_registry_impl.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
-#define CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/public/cpp/system/message_pipe.h"
-#include "third_party/WebKit/public/platform/ServiceRegistry.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace shell {
-class InterfaceProvider;
-}
-
-namespace content {
-
-// An implementation of blink::ServiceRegistry that forwards to a
-// shell::InterfaceProvider.
-class BlinkServiceRegistryImpl : public blink::ServiceRegistry {
- public:
- explicit BlinkServiceRegistryImpl(
- base::WeakPtr<shell::InterfaceProvider> remote_interfaces);
- ~BlinkServiceRegistryImpl();
-
- // blink::ServiceRegistry override.
- void connectToRemoteService(const char* name,
- mojo::ScopedMessagePipeHandle handle) override;
-
- private:
- const base::WeakPtr<shell::InterfaceProvider> remote_interfaces_;
-
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
-
- base::WeakPtrFactory<BlinkServiceRegistryImpl> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(BlinkServiceRegistryImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698