Chromium Code Reviews| 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 CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
| 87 // Create command line for launching loader under nacl-gdb. | 87 // Create command line for launching loader under nacl-gdb. |
| 88 scoped_ptr<CommandLine> GetCommandForLaunchWithGdb(const FilePath& nacl_gdb, | 88 scoped_ptr<CommandLine> GetCommandForLaunchWithGdb(const FilePath& nacl_gdb, |
| 89 CommandLine* line); | 89 CommandLine* line); |
| 90 #elif defined(OS_LINUX) | 90 #elif defined(OS_LINUX) |
| 91 bool LaunchNaClGdb(base::ProcessId pid); | 91 bool LaunchNaClGdb(base::ProcessId pid); |
| 92 void OnNaClGdbAttached(); | 92 void OnNaClGdbAttached(); |
| 93 #endif | 93 #endif |
| 94 #if defined(OS_POSIX) | |
| 95 // Create socket for debug stub in browser process so that we can leave | |
| 96 // sandbox turned on during debugging. | |
|
Mark Seaborn
2012/09/10 15:39:45
Please disambiguate "debugging" in comments so tha
halyavin
2012/09/11 11:16:12
Done.
| |
| 97 SocketDescriptor GetDebugStubSocketHandle(); | |
| 98 #endif | |
| 94 // Get path to manifest on local disk if possible. | 99 // Get path to manifest on local disk if possible. |
| 95 FilePath GetManifestPath(); | 100 FilePath GetManifestPath(); |
| 96 bool LaunchSelLdr(); | 101 bool LaunchSelLdr(); |
| 97 | 102 |
| 98 // BrowserChildProcessHostDelegate implementation: | 103 // BrowserChildProcessHostDelegate implementation: |
| 99 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 104 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 100 virtual void OnProcessLaunched() OVERRIDE; | 105 virtual void OnProcessLaunched() OVERRIDE; |
| 101 | 106 |
| 102 void OnResourcesReady(); | 107 void OnResourcesReady(); |
| 103 | 108 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 187 |
| 183 // Channel proxy to terminate the NaCl-Browser PPAPI channel. | 188 // Channel proxy to terminate the NaCl-Browser PPAPI channel. |
| 184 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_; | 189 scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_; |
| 185 // Plugin listener, to forward browser channel messages to us. | 190 // Plugin listener, to forward browser channel messages to us. |
| 186 PluginListener ipc_plugin_listener_; | 191 PluginListener ipc_plugin_listener_; |
| 187 | 192 |
| 188 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 193 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
| 189 }; | 194 }; |
| 190 | 195 |
| 191 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 196 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
| OLD | NEW |