OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
7 | 7 |
8 #include "base/process/process_handle.h" | 8 #include "base/process/process_handle.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/ppp.h" | 10 #include "ppapi/c/ppp.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 HostDispatcherWrapper(PluginModule* module, | 27 HostDispatcherWrapper(PluginModule* module, |
28 base::ProcessId peer_pid, | 28 base::ProcessId peer_pid, |
29 int plugin_child_id, | 29 int plugin_child_id, |
30 const ppapi::PpapiPermissions& perms, | 30 const ppapi::PpapiPermissions& perms, |
31 bool is_external); | 31 bool is_external); |
32 virtual ~HostDispatcherWrapper(); | 32 virtual ~HostDispatcherWrapper(); |
33 | 33 |
34 bool Init(const IPC::ChannelHandle& channel_handle, | 34 bool Init(const IPC::ChannelHandle& channel_handle, |
35 PP_GetInterface_Func local_get_interface, | 35 PP_GetInterface_Func local_get_interface, |
36 const ppapi::Preferences& preferences, | 36 const ppapi::Preferences& preferences, |
37 scoped_refptr<PepperHungPluginFilter> filter); | 37 PepperHungPluginFilter* filter); |
38 | 38 |
39 // Implements GetInterface for the proxied plugin. | 39 // Implements GetInterface for the proxied plugin. |
40 const void* GetProxiedInterface(const char* name); | 40 const void* GetProxiedInterface(const char* name); |
41 | 41 |
42 // Notification to the out-of-process layer that the given plugin instance | 42 // Notification to the out-of-process layer that the given plugin instance |
43 // has been created. This will happen before the normal PPB_Instance method | 43 // has been created. This will happen before the normal PPB_Instance method |
44 // calls so the out-of-process code can set up the tracking information for | 44 // calls so the out-of-process code can set up the tracking information for |
45 // the new instance. | 45 // the new instance. |
46 void AddInstance(PP_Instance instance); | 46 void AddInstance(PP_Instance instance); |
47 | 47 |
(...skipping 19 matching lines...) Expand all Loading... |
67 ppapi::PpapiPermissions permissions_; | 67 ppapi::PpapiPermissions permissions_; |
68 bool is_external_; | 68 bool is_external_; |
69 | 69 |
70 scoped_ptr<ppapi::proxy::HostDispatcher> dispatcher_; | 70 scoped_ptr<ppapi::proxy::HostDispatcher> dispatcher_; |
71 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; | 71 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
75 | 75 |
76 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 76 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
OLD | NEW |