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