| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ | 6 #define CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "third_party/WebKit/public/platform/InterfaceRegistry.h" | 10 #include "third_party/WebKit/public/platform/InterfaceRegistry.h" |
| 11 | 11 |
| 12 namespace service_manager { | 12 namespace service_manager { |
| 13 class InterfaceRegistry; | 13 class BinderRegistry; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class BlinkInterfaceRegistryImpl : public blink::InterfaceRegistry { | 18 class BlinkInterfaceRegistryImpl : public blink::InterfaceRegistry { |
| 19 public: | 19 public: |
| 20 explicit BlinkInterfaceRegistryImpl( | 20 explicit BlinkInterfaceRegistryImpl( |
| 21 base::WeakPtr<service_manager::InterfaceRegistry> interface_registry); | 21 base::WeakPtr<service_manager::BinderRegistry> interface_registry); |
| 22 ~BlinkInterfaceRegistryImpl(); | 22 ~BlinkInterfaceRegistryImpl(); |
| 23 | 23 |
| 24 // blink::InterfaceRegistry override. | 24 // blink::InterfaceRegistry override. |
| 25 void AddInterface(const char* name, | 25 void AddInterface(const char* name, |
| 26 const blink::InterfaceFactory& factory) override; | 26 const blink::InterfaceFactory& factory) override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 const base::WeakPtr<service_manager::InterfaceRegistry> interface_registry_; | 29 const base::WeakPtr<service_manager::BinderRegistry> interface_registry_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(BlinkInterfaceRegistryImpl); | 31 DISALLOW_COPY_AND_ASSIGN(BlinkInterfaceRegistryImpl); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace content | 34 } // namespace content |
| 35 | 35 |
| 36 #endif // CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ | 36 #endif // CONTENT_RENDERER_MOJO_BLINK_INTERFACE_REGISTRY_IMPL_H_ |
| OLD | NEW |