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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void OnMsgInitializeNaClDispatcher(const PpapiNaClPluginArgs& args); | 88 void OnMsgInitializeNaClDispatcher(const PpapiNaClPluginArgs& args); |
89 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); | 89 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); |
90 | 90 |
91 std::set<PP_Instance> instances_; | 91 std::set<PP_Instance> instances_; |
92 std::map<uint32_t, proxy::PluginDispatcher*> plugin_dispatchers_; | 92 std::map<uint32_t, proxy::PluginDispatcher*> plugin_dispatchers_; |
93 uint32_t next_plugin_dispatcher_id_; | 93 uint32_t next_plugin_dispatcher_id_; |
94 | 94 |
95 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
96 base::WaitableEvent* shutdown_event_; | 96 base::WaitableEvent* shutdown_event_; |
97 int renderer_ipc_fd_; | 97 int renderer_ipc_fd_; |
98 scoped_ptr<IPC::SyncChannel> channel_; | 98 std::unique_ptr<IPC::SyncChannel> channel_; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace ppapi | 101 } // namespace ppapi |
102 | 102 |
103 #endif // PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ | 103 #endif // PPAPI_NACL_IRT_PPAPI_DISPATCHER_H_ |
OLD | NEW |