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

Unified Diff: content/browser/browser_child_process_host_impl.h

Issue 12374061: Windows: BrowserChildProcessHostImpl reports OnProcessCrashed if the child process crashes before… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 10 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
« no previous file with comments | « no previous file | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_child_process_host_impl.h
===================================================================
--- content/browser/browser_child_process_host_impl.h (revision 186276)
+++ content/browser/browser_child_process_host_impl.h (working copy)
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
+#include "base/synchronization/waitable_event_watcher.h"
#include "content/browser/child_process_launcher.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/child_process_data.h"
@@ -89,11 +90,23 @@
// ChildProcessLauncher::Client implementation.
virtual void OnProcessLaunched() OVERRIDE;
+#if defined(OS_WIN)
+ void DeleteProcessWaitableEvent(base::WaitableEvent* event);
+ void OnProcessExitedEarly(base::WaitableEvent* event);
+#endif
+
ChildProcessData data_;
BrowserChildProcessHostDelegate* delegate_;
scoped_ptr<ChildProcessHost> child_process_host_;
scoped_ptr<ChildProcessLauncher> child_process_;
+
+#if defined(OS_WIN)
+ // Watches to see if the child process exits before the IPC channel has
+ // been connected. Thereafter, its exit is determined by an error on the
+ // IPC channel.
+ base::WaitableEventWatcher early_exit_watcher_;
+#endif
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698