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

Unified Diff: content/browser/renderer_host/browser_render_process_host.cc

Issue 7888024: Move handle dumpage to the renderer process (so that it works correctly) and factor out redundant... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | content/browser/renderer_host/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698