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

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

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code 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 unified diff | Download patch
OLDNEW
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_SERVICE_REGISTRY_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
6 #define CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_ 6 #define CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 11 matching lines...) Expand all
22 namespace content { 22 namespace content {
23 23
24 // An implementation of blink::ServiceRegistry that forwards to a 24 // An implementation of blink::ServiceRegistry that forwards to a
25 // shell::InterfaceProvider. 25 // shell::InterfaceProvider.
26 class BlinkServiceRegistryImpl : public blink::ServiceRegistry { 26 class BlinkServiceRegistryImpl : public blink::ServiceRegistry {
27 public: 27 public:
28 explicit BlinkServiceRegistryImpl( 28 explicit BlinkServiceRegistryImpl(
29 base::WeakPtr<shell::InterfaceProvider> remote_interfaces); 29 base::WeakPtr<shell::InterfaceProvider> remote_interfaces);
30 ~BlinkServiceRegistryImpl(); 30 ~BlinkServiceRegistryImpl();
31 31
32 const base::WeakPtr<shell::InterfaceProvider>& remote_interfaces() const {
33 return remote_interfaces_;
34 }
35
32 // blink::ServiceRegistry override. 36 // blink::ServiceRegistry override.
33 void connectToRemoteService(const char* name, 37 void connectToRemoteService(const char* name,
34 mojo::ScopedMessagePipeHandle handle) override; 38 mojo::ScopedMessagePipeHandle handle) override;
35 39
36 private: 40 private:
37 const base::WeakPtr<shell::InterfaceProvider> remote_interfaces_; 41 const base::WeakPtr<shell::InterfaceProvider> remote_interfaces_;
38 42
39 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 43 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
40 44
41 base::WeakPtrFactory<BlinkServiceRegistryImpl> weak_ptr_factory_; 45 base::WeakPtrFactory<BlinkServiceRegistryImpl> weak_ptr_factory_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(BlinkServiceRegistryImpl); 47 DISALLOW_COPY_AND_ASSIGN(BlinkServiceRegistryImpl);
44 }; 48 };
45 49
46 } // namespace content 50 } // namespace content
47 51
48 #endif // CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_ 52 #endif // CONTENT_RENDERER_MOJO_BLINK_SERVICE_REGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698