OLD | NEW |
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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // class. RenderProcessHostImpl is the main exception that doesn't use this | 35 // class. RenderProcessHostImpl is the main exception that doesn't use this |
36 /// class because it lives on the UI thread. | 36 /// class because it lives on the UI thread. |
37 class CONTENT_EXPORT BrowserChildProcessHostImpl | 37 class CONTENT_EXPORT BrowserChildProcessHostImpl |
38 : public BrowserChildProcessHost, | 38 : public BrowserChildProcessHost, |
39 public NON_EXPORTED_BASE(ChildProcessHostDelegate), | 39 public NON_EXPORTED_BASE(ChildProcessHostDelegate), |
40 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
41 public base::win::ObjectWatcher::Delegate, | 41 public base::win::ObjectWatcher::Delegate, |
42 #endif | 42 #endif |
43 public ChildProcessLauncher::Client { | 43 public ChildProcessLauncher::Client { |
44 public: | 44 public: |
45 BrowserChildProcessHostImpl( | 45 BrowserChildProcessHostImpl(content::ProcessType process_type, |
46 int process_type, | 46 BrowserChildProcessHostDelegate* delegate); |
47 BrowserChildProcessHostDelegate* delegate); | |
48 ~BrowserChildProcessHostImpl() override; | 47 ~BrowserChildProcessHostImpl() override; |
49 | 48 |
50 // Terminates all child processes and deletes each BrowserChildProcessHost | 49 // Terminates all child processes and deletes each BrowserChildProcessHost |
51 // instance. | 50 // instance. |
52 static void TerminateAll(); | 51 static void TerminateAll(); |
53 | 52 |
54 // BrowserChildProcessHost implementation: | 53 // BrowserChildProcessHost implementation: |
55 bool Send(IPC::Message* message) override; | 54 bool Send(IPC::Message* message) override; |
56 void Launch(SandboxedProcessLauncherDelegate* delegate, | 55 void Launch(SandboxedProcessLauncherDelegate* delegate, |
57 base::CommandLine* cmd_line, | 56 base::CommandLine* cmd_line, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // Watches to see if the child process exits before the IPC channel has | 118 // Watches to see if the child process exits before the IPC channel has |
120 // been connected. Thereafter, its exit is determined by an error on the | 119 // been connected. Thereafter, its exit is determined by an error on the |
121 // IPC channel. | 120 // IPC channel. |
122 base::win::ObjectWatcher early_exit_watcher_; | 121 base::win::ObjectWatcher early_exit_watcher_; |
123 #endif | 122 #endif |
124 }; | 123 }; |
125 | 124 |
126 } // namespace content | 125 } // namespace content |
127 | 126 |
128 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 127 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |