| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // If |child_process_id| is 0, returns the host owned by this | 45 // If |child_process_id| is 0, returns the host owned by this |
| 46 // PepperRendererConnection, which serves as the host for in-process plugins. | 46 // PepperRendererConnection, which serves as the host for in-process plugins. |
| 47 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const; | 47 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const; |
| 48 | 48 |
| 49 void OnMsgCreateResourceHostsFromHost( | 49 void OnMsgCreateResourceHostsFromHost( |
| 50 int routing_id, | 50 int routing_id, |
| 51 int child_process_id, | 51 int child_process_id, |
| 52 const ppapi::proxy::ResourceMessageCallParams& params, | 52 const ppapi::proxy::ResourceMessageCallParams& params, |
| 53 PP_Instance instance, | 53 PP_Instance instance, |
| 54 const std::vector<IPC::Message>& nested_msgs); | 54 const std::vector<IPC::Message>& nested_msgs); |
| 55 void OnMsgCreateResourceHostsFromHostReplyAck( |
| 56 int child_process_id, PP_Instance instance, int sequence_num); |
| 57 void OnMsgGetAllPendingResourceHosts(int routing_id, |
| 58 int child_process_id, |
| 59 PP_Instance instance, |
| 60 IPC::Message* reply_msg); |
| 55 | 61 |
| 56 void OnMsgDidCreateInProcessInstance( | 62 void OnMsgDidCreateInProcessInstance( |
| 57 PP_Instance instance, | 63 PP_Instance instance, |
| 58 const PepperRendererInstanceData& instance_data); | 64 const PepperRendererInstanceData& instance_data); |
| 59 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); | 65 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); |
| 60 | 66 |
| 61 int render_process_id_; | 67 int render_process_id_; |
| 62 | 68 |
| 63 // We have a single BrowserPpapiHost per-renderer for all in-process plugins | 69 // We have a single BrowserPpapiHost per-renderer for all in-process plugins |
| 64 // running. This is just a work-around allowing new style resources to work | 70 // running. This is just a work-around allowing new style resources to work |
| 65 // with the browser when running in-process but it means that plugin-specific | 71 // with the browser when running in-process but it means that plugin-specific |
| 66 // information (like the plugin name) won't be available. | 72 // information (like the plugin name) won't be available. |
| 67 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; | 73 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; |
| 68 | 74 |
| 69 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); | 75 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); |
| 70 }; | 76 }; |
| 71 | 77 |
| 72 } // namespace content | 78 } // namespace content |
| 73 | 79 |
| 74 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ | 80 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
| OLD | NEW |