Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 10956065: Handle crashing Pepper plug-ins the same as crashing NPAPI plug-ins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/plugin_info_message_filter.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698