Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_WRAPPER_H_ | |
| 6 #define CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_WRAPPER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/weak_ptr.h" | |
| 10 #include "mojo/public/cpp/system/message_pipe.h" | |
| 11 #include "third_party/WebKit/public/platform/ServiceRegistry.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class ServiceRegistry; | |
| 16 | |
| 17 // A wrapper around ServiceRegistry that implements blink::ServiceRegistry. | |
| 18 class BlinkServiceRegistryWrapper : public blink::ServiceRegistry { | |
|
esprehn
2016/03/29 05:26:20
BlinkServiceRegistryImpl
that matches other platf
Sam McNally
2016/03/30 00:20:53
Done.
| |
| 19 public: | |
| 20 explicit BlinkServiceRegistryWrapper( | |
| 21 content::ServiceRegistry* service_registry); | |
| 22 ~BlinkServiceRegistryWrapper(); | |
| 23 | |
| 24 // blink::ServiceRegistry override. | |
| 25 void connectToRemoteService(const char* name, | |
| 26 mojo::ScopedMessagePipeHandle handle) override; | |
| 27 | |
| 28 private: | |
| 29 const base::WeakPtr<content::ServiceRegistry> service_registry_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(BlinkServiceRegistryWrapper); | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_WRAPPER_H_ | |
| OLD | NEW |