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

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: 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
Index: content/browser/browser_child_process_host_impl.h
===================================================================
--- content/browser/browser_child_process_host_impl.h (revision 184931)
+++ content/browser/browser_child_process_host_impl.h (working copy)
@@ -10,6 +10,8 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
+#include "base/synchronization/waitable_event.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"
@@ -84,11 +86,24 @@
// ChildProcessLauncher::Client implementation.
virtual void OnProcessLaunched() OVERRIDE;
+ void OnProcessExitedEarly(base::WaitableEvent* event);
+
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_;
+
+ // Wraps the process in a WaitableEvent. This event is "signalled" when the
+ // process exits.
+ scoped_ptr<base::WaitableEvent> process_waitable_event_;
+#endif
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/browser_child_process_host_impl.cc » ('j') | content/browser/browser_child_process_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698