OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 virtual ~PpapiPluginProcessHost(); | 73 virtual ~PpapiPluginProcessHost(); |
74 | 74 |
75 static PpapiPluginProcessHost* CreatePluginHost( | 75 static PpapiPluginProcessHost* CreatePluginHost( |
76 const PepperPluginInfo& info, | 76 const PepperPluginInfo& info, |
77 const FilePath& profile_data_directory, | 77 const FilePath& profile_data_directory, |
78 net::HostResolver* host_resolver); | 78 net::HostResolver* host_resolver); |
79 static PpapiPluginProcessHost* CreateBrokerHost( | 79 static PpapiPluginProcessHost* CreateBrokerHost( |
80 const PepperPluginInfo& info); | 80 const PepperPluginInfo& info); |
81 | 81 |
82 // Notification that a PP_Instance has been created for the given | 82 // Notification that a PP_Instance has been created and the associated |
83 // RenderView/Process pair for the given plugin. This is necessary so that | 83 // renderer related data including the RenderView/Process pair for the given |
84 // when the plugin calls us with a PP_Instance we can find the RenderView | 84 // plugin. This is necessary so that when the plugin calls us with a |
85 // associated with it without trusting the plugin. | 85 // PP_Instance we can find the RenderView associated with it without trusting |
86 static void DidCreateOutOfProcessInstance(int plugin_process_id, | 86 // the plugin. |
87 int32 pp_instance, | 87 static void DidCreateOutOfProcessInstance( |
88 int render_process_id, | 88 int plugin_process_id, |
89 int render_view_id); | 89 int32 pp_instance, |
| 90 const PepperRendererInstanceData& instance_data); |
90 | 91 |
91 // The opposite of DIdCreate... above. | 92 // The opposite of DIdCreate... above. |
92 static void DidDeleteOutOfProcessInstance(int plugin_process_id, | 93 static void DidDeleteOutOfProcessInstance(int plugin_process_id, |
93 int32 pp_instance); | 94 int32 pp_instance); |
94 | 95 |
95 // IPC::Sender implementation: | 96 // IPC::Sender implementation: |
96 virtual bool Send(IPC::Message* message) OVERRIDE; | 97 virtual bool Send(IPC::Message* message) OVERRIDE; |
97 | 98 |
98 // Opens a new channel to the plugin. The client will be notified when the | 99 // Opens a new channel to the plugin. The client will be notified when the |
99 // channel is ready or if there's an error. | 100 // channel is ready or if there's an error. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 public: | 183 public: |
183 PpapiBrokerProcessHostIterator() | 184 PpapiBrokerProcessHostIterator() |
184 : BrowserChildProcessHostTypeIterator< | 185 : BrowserChildProcessHostTypeIterator< |
185 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 186 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
186 }; | 187 }; |
187 | 188 |
188 } // namespace content | 189 } // namespace content |
189 | 190 |
190 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 191 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
191 | 192 |
OLD | NEW |