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

Side by Side 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, 9 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
« no previous file with comments | « no previous file | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/process.h" 12 #include "base/process.h"
13 #include "base/synchronization/waitable_event_watcher.h"
13 #include "content/browser/child_process_launcher.h" 14 #include "content/browser/child_process_launcher.h"
14 #include "content/public/browser/browser_child_process_host.h" 15 #include "content/public/browser/browser_child_process_host.h"
15 #include "content/public/browser/child_process_data.h" 16 #include "content/public/browser/child_process_data.h"
16 #include "content/public/common/child_process_host_delegate.h" 17 #include "content/public/common/child_process_host_delegate.h"
17 18
18 namespace content { 19 namespace content {
19 20
20 class BrowserChildProcessHostIterator; 21 class BrowserChildProcessHostIterator;
21 class BrowserChildProcessObserver; 22 class BrowserChildProcessObserver;
22 23
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // ChildProcessHostDelegate implementation: 83 // ChildProcessHostDelegate implementation:
83 virtual bool CanShutdown() OVERRIDE; 84 virtual bool CanShutdown() OVERRIDE;
84 virtual void OnChildDisconnected() OVERRIDE; 85 virtual void OnChildDisconnected() OVERRIDE;
85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 86 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
86 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 87 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
87 virtual void OnChannelError() OVERRIDE; 88 virtual void OnChannelError() OVERRIDE;
88 89
89 // ChildProcessLauncher::Client implementation. 90 // ChildProcessLauncher::Client implementation.
90 virtual void OnProcessLaunched() OVERRIDE; 91 virtual void OnProcessLaunched() OVERRIDE;
91 92
93 #if defined(OS_WIN)
94 void DeleteProcessWaitableEvent(base::WaitableEvent* event);
95 void OnProcessExitedEarly(base::WaitableEvent* event);
96 #endif
97
92 ChildProcessData data_; 98 ChildProcessData data_;
93 BrowserChildProcessHostDelegate* delegate_; 99 BrowserChildProcessHostDelegate* delegate_;
94 scoped_ptr<ChildProcessHost> child_process_host_; 100 scoped_ptr<ChildProcessHost> child_process_host_;
95 101
96 scoped_ptr<ChildProcessLauncher> child_process_; 102 scoped_ptr<ChildProcessLauncher> child_process_;
103
104 #if defined(OS_WIN)
105 // Watches to see if the child process exits before the IPC channel has
106 // been connected. Thereafter, its exit is determined by an error on the
107 // IPC channel.
108 base::WaitableEventWatcher early_exit_watcher_;
109 #endif
97 }; 110 };
98 111
99 } // namespace content 112 } // namespace content
100 113
101 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« 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