| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ | 5 #ifndef PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ |
| 6 #define PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ | 6 #define PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 public proxy::PluginProxyDelegate, | 45 public proxy::PluginProxyDelegate, |
| 46 public IPC::Listener, | 46 public IPC::Listener, |
| 47 public IPC::Sender { | 47 public IPC::Sender { |
| 48 public: | 48 public: |
| 49 PpapiDispatcher(scoped_refptr<base::MessageLoopProxy> io_loop, | 49 PpapiDispatcher(scoped_refptr<base::MessageLoopProxy> io_loop, |
| 50 base::WaitableEvent* shutdown_event, | 50 base::WaitableEvent* shutdown_event, |
| 51 int browser_ipc_fd, | 51 int browser_ipc_fd, |
| 52 int renderer_ipc_fd); | 52 int renderer_ipc_fd); |
| 53 | 53 |
| 54 // PluginDispatcher::PluginDelegate implementation. | 54 // PluginDispatcher::PluginDelegate implementation. |
| 55 base::MessageLoopProxy* GetIPCMessageLoop() override; | 55 base::SingleThreadTaskRunner* GetIPCTaskRunner() override; |
| 56 base::WaitableEvent* GetShutdownEvent() override; | 56 base::WaitableEvent* GetShutdownEvent() override; |
| 57 IPC::PlatformFileForTransit ShareHandleWithRemote( | 57 IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 58 base::PlatformFile handle, | 58 base::PlatformFile handle, |
| 59 base::ProcessId peer_pid, | 59 base::ProcessId peer_pid, |
| 60 bool should_close_source) override; | 60 bool should_close_source) override; |
| 61 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; | 61 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; |
| 62 uint32 Register(proxy::PluginDispatcher* plugin_dispatcher) override; | 62 uint32 Register(proxy::PluginDispatcher* plugin_dispatcher) override; |
| 63 void Unregister(uint32 plugin_dispatcher_id) override; | 63 void Unregister(uint32 plugin_dispatcher_id) override; |
| 64 | 64 |
| 65 // PluginProxyDelegate implementation. | 65 // PluginProxyDelegate implementation. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 89 | 89 |
| 90 scoped_refptr<base::MessageLoopProxy> message_loop_; | 90 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 91 base::WaitableEvent* shutdown_event_; | 91 base::WaitableEvent* shutdown_event_; |
| 92 int renderer_ipc_fd_; | 92 int renderer_ipc_fd_; |
| 93 scoped_ptr<IPC::SyncChannel> channel_; | 93 scoped_ptr<IPC::SyncChannel> channel_; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace ppapi | 96 } // namespace ppapi |
| 97 | 97 |
| 98 #endif // PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ | 98 #endif // PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ |
| OLD | NEW |