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) override; | 56 base::CommandLine* cmd_line) override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Watches to see if the child process exits before the IPC channel has | 121 // Watches to see if the child process exits before the IPC channel has |
123 // been connected. Thereafter, its exit is determined by an error on the | 122 // been connected. Thereafter, its exit is determined by an error on the |
124 // IPC channel. | 123 // IPC channel. |
125 base::win::ObjectWatcher early_exit_watcher_; | 124 base::win::ObjectWatcher early_exit_watcher_; |
126 #endif | 125 #endif |
127 }; | 126 }; |
128 | 127 |
129 } // namespace content | 128 } // namespace content |
130 | 129 |
131 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 130 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |