| Index: content/browser/renderer_host/browser_render_process_host.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/browser_render_process_host.cc (revision 101774)
|
| +++ content/browser/renderer_host/browser_render_process_host.cc (working copy)
|
| @@ -530,6 +530,8 @@
|
| static const char* const kSwitchNames[] = {
|
| // We propagate the Chrome Frame command line here as well in case the
|
| // renderer is not run in the sandbox.
|
| + switches::kAuditAllHandles,
|
| + switches::kAuditHandles,
|
| switches::kChromeFrame,
|
| switches::kDisable3DAPIs,
|
| switches::kDisableAcceleratedCompositing,
|
| @@ -656,6 +658,15 @@
|
| return true;
|
| }
|
|
|
| +void BrowserRenderProcessHost::DumpHandles() {
|
| +#if defined(OS_WIN)
|
| + Send(new ChildProcessMsg_DumpHandles());
|
| + return;
|
| +#endif
|
| +
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| // This is a platform specific function for mapping a transport DIB given its id
|
| TransportDIB* BrowserRenderProcessHost::MapTransportDIB(
|
| TransportDIB::Id dib_id) {
|
| @@ -756,6 +767,8 @@
|
| IPC_BEGIN_MESSAGE_MAP_EX(BrowserRenderProcessHost, msg, msg_is_ok)
|
| IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest,
|
| OnShutdownRequest)
|
| + IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DumpHandlesDone,
|
| + OnDumpHandlesDone)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_SuddenTerminationChanged,
|
| SuddenTerminationChanged)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
|
| @@ -901,6 +914,10 @@
|
| Send(new ChildProcessMsg_Shutdown());
|
| }
|
|
|
| +void BrowserRenderProcessHost::OnDumpHandlesDone() {
|
| + Cleanup();
|
| +}
|
| +
|
| void BrowserRenderProcessHost::SuddenTerminationChanged(bool enabled) {
|
| set_sudden_termination_allowed(enabled);
|
| }
|
|
|