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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 PpapiPluginProcessHost(); | 118 PpapiPluginProcessHost(); |
119 | 119 |
120 // Actually launches the process with the given plugin info. Returns true | 120 // Actually launches the process with the given plugin info. Returns true |
121 // on success (the process was spawned). | 121 // on success (the process was spawned). |
122 bool Init(const content::PepperPluginInfo& info); | 122 bool Init(const content::PepperPluginInfo& info); |
123 | 123 |
124 void RequestPluginChannel(Client* client); | 124 void RequestPluginChannel(Client* client); |
125 | 125 |
126 virtual void OnProcessLaunched() OVERRIDE; | 126 virtual void OnProcessLaunched() OVERRIDE; |
127 | 127 |
| 128 virtual void OnProcessCrashed(int exit_code) OVERRIDE; |
128 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 129 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
129 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 130 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
130 virtual void OnChannelError() OVERRIDE; | 131 virtual void OnChannelError() OVERRIDE; |
131 | 132 |
132 void CancelRequests(); | 133 void CancelRequests(); |
133 | 134 |
134 // IPC message handlers. | 135 // IPC message handlers. |
135 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); | 136 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); |
136 | 137 |
137 // Handles most requests from the plugin. May be NULL. | 138 // Handles most requests from the plugin. May be NULL. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 : public content::BrowserChildProcessHostTypeIterator< | 180 : public content::BrowserChildProcessHostTypeIterator< |
180 PpapiPluginProcessHost> { | 181 PpapiPluginProcessHost> { |
181 public: | 182 public: |
182 PpapiBrokerProcessHostIterator() | 183 PpapiBrokerProcessHostIterator() |
183 : content::BrowserChildProcessHostTypeIterator< | 184 : content::BrowserChildProcessHostTypeIterator< |
184 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} | 185 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} |
185 }; | 186 }; |
186 | 187 |
187 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 188 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
188 | 189 |
OLD | NEW |