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 <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const PepperPluginInfo& info); | 77 const PepperPluginInfo& info); |
78 | 78 |
79 // Notification that a PP_Instance has been created and the associated | 79 // Notification that a PP_Instance has been created and the associated |
80 // renderer related data including the RenderView/Process pair for the given | 80 // renderer related data including the RenderView/Process pair for the given |
81 // plugin. This is necessary so that when the plugin calls us with a | 81 // plugin. This is necessary so that when the plugin calls us with a |
82 // PP_Instance we can find the RenderView associated with it without trusting | 82 // PP_Instance we can find the RenderView associated with it without trusting |
83 // the plugin. | 83 // the plugin. |
84 static void DidCreateOutOfProcessInstance( | 84 static void DidCreateOutOfProcessInstance( |
85 int plugin_process_id, | 85 int plugin_process_id, |
86 int32 pp_instance, | 86 int32 pp_instance, |
87 const PepperRendererInstanceData& instance_data); | 87 const PepperRendererInstanceData& instance_data, |
| 88 IPC::Sender* renderer_sender); |
88 | 89 |
89 // The opposite of DIdCreate... above. | 90 // The opposite of DidCreate... above. |
90 static void DidDeleteOutOfProcessInstance(int plugin_process_id, | 91 static void DidDeleteOutOfProcessInstance(int plugin_process_id, |
91 int32 pp_instance); | 92 int32 pp_instance); |
92 | 93 |
93 // Returns the instances that match the specified process name. | 94 // Returns the instances that match the specified process name. |
94 // It can only be called on the IO thread. | 95 // It can only be called on the IO thread. |
95 static void FindByName(const base::string16& name, | 96 static void FindByName(const base::string16& name, |
96 std::vector<PpapiPluginProcessHost*>* hosts); | 97 std::vector<PpapiPluginProcessHost*>* hosts); |
97 | 98 |
98 // IPC::Sender implementation: | 99 // IPC::Sender implementation: |
99 bool Send(IPC::Message* message) override; | 100 bool Send(IPC::Message* message) override; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 public: | 184 public: |
184 PpapiBrokerProcessHostIterator() | 185 PpapiBrokerProcessHostIterator() |
185 : BrowserChildProcessHostTypeIterator< | 186 : BrowserChildProcessHostTypeIterator< |
186 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} | 187 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} |
187 }; | 188 }; |
188 | 189 |
189 } // namespace content | 190 } // namespace content |
190 | 191 |
191 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 192 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
192 | 193 |
OLD | NEW |