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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // BrowserChildProcessHost implementation: | 47 // BrowserChildProcessHost implementation: |
48 virtual bool Send(IPC::Message* message) OVERRIDE; | 48 virtual bool Send(IPC::Message* message) OVERRIDE; |
49 virtual void Launch( | 49 virtual void Launch( |
50 SandboxedProcessLauncherDelegate* delegate, | 50 SandboxedProcessLauncherDelegate* delegate, |
51 base::CommandLine* cmd_line) OVERRIDE; | 51 base::CommandLine* cmd_line) OVERRIDE; |
52 virtual const ChildProcessData& GetData() const OVERRIDE; | 52 virtual const ChildProcessData& GetData() const OVERRIDE; |
53 virtual ChildProcessHost* GetHost() const OVERRIDE; | 53 virtual ChildProcessHost* GetHost() const OVERRIDE; |
54 virtual base::TerminationStatus GetTerminationStatus( | 54 virtual base::TerminationStatus GetTerminationStatus( |
55 bool known_dead, int* exit_code) OVERRIDE; | 55 bool known_dead, int* exit_code) OVERRIDE; |
56 virtual void SetNaClDebugStubPort(int port) OVERRIDE; | |
57 virtual void SetName(const base::string16& name) OVERRIDE; | 56 virtual void SetName(const base::string16& name) OVERRIDE; |
58 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 57 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
59 | 58 |
60 // ChildProcessHostDelegate implementation: | 59 // ChildProcessHostDelegate implementation: |
61 virtual bool CanShutdown() OVERRIDE; | 60 virtual bool CanShutdown() OVERRIDE; |
62 virtual void OnChildDisconnected() OVERRIDE; | 61 virtual void OnChildDisconnected() OVERRIDE; |
63 virtual base::ProcessHandle GetHandle() const OVERRIDE; | 62 virtual base::ProcessHandle GetHandle() const OVERRIDE; |
64 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 63 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
65 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 64 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
66 virtual void OnChannelError() OVERRIDE; | 65 virtual void OnChannelError() OVERRIDE; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Watches to see if the child process exits before the IPC channel has | 116 // Watches to see if the child process exits before the IPC channel has |
118 // been connected. Thereafter, its exit is determined by an error on the | 117 // been connected. Thereafter, its exit is determined by an error on the |
119 // IPC channel. | 118 // IPC channel. |
120 base::WaitableEventWatcher early_exit_watcher_; | 119 base::WaitableEventWatcher early_exit_watcher_; |
121 #endif | 120 #endif |
122 }; | 121 }; |
123 | 122 |
124 } // namespace content | 123 } // namespace content |
125 | 124 |
126 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 125 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |