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

Side by Side Diff: content/renderer/mojo/blink_service_registry_impl.h

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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_IMPL_H_
6 #define CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_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 // An implementation of blink::ServiceRegistry that forwards to a
18 // content::ServiceRegistry.
19 class BlinkServiceRegistryImpl : public blink::ServiceRegistry {
20 public:
21 explicit BlinkServiceRegistryImpl(
22 base::WeakPtr<content::ServiceRegistry> service_registry);
23 ~BlinkServiceRegistryImpl();
24
25 // blink::ServiceRegistry override.
26 void connectToRemoteService(const char* name,
27 mojo::ScopedMessagePipeHandle handle) override;
28
29 private:
30 const base::WeakPtr<content::ServiceRegistry> service_registry_;
31
32 DISALLOW_COPY_AND_ASSIGN(BlinkServiceRegistryImpl);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/mojo/blink_service_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698