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 COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 private: | 100 private: |
101 // Internal class that holds the NaClHandle objecs so that | 101 // Internal class that holds the NaClHandle objecs so that |
102 // nacl_process_host.h doesn't include NaCl headers. Needed since it's | 102 // nacl_process_host.h doesn't include NaCl headers. Needed since it's |
103 // included by src\content, which can't depend on the NaCl gyp file because it | 103 // included by src\content, which can't depend on the NaCl gyp file because it |
104 // depends on chrome.gyp (circular dependency). | 104 // depends on chrome.gyp (circular dependency). |
105 struct NaClInternal; | 105 struct NaClInternal; |
106 | 106 |
107 bool LaunchNaClGdb(); | 107 bool LaunchNaClGdb(); |
108 | 108 |
109 // Mark the process as using a particular GDB debug stub port and notify | 109 // Mark the process as using a particular GDB debug stub port and notify |
110 // listeners. | 110 // listeners (if the port is not kGdbDebugStubPortUnknown). |
111 void SetDebugStubPort(uint16_t port); | 111 void SetDebugStubPort(int port); |
112 | 112 |
113 #if defined(OS_POSIX) | 113 #if defined(OS_POSIX) |
114 // Create bound TCP socket in the browser process so that the NaCl GDB debug | 114 // Create bound TCP socket in the browser process so that the NaCl GDB debug |
115 // stub can use it to accept incoming connections even when the Chrome sandbox | 115 // stub can use it to accept incoming connections even when the Chrome sandbox |
116 // is enabled. | 116 // is enabled. |
117 net::SocketDescriptor GetDebugStubSocketHandle(); | 117 net::SocketDescriptor GetDebugStubSocketHandle(); |
118 #endif | 118 #endif |
119 | 119 |
120 #if defined(OS_WIN) | 120 #if defined(OS_WIN) |
121 // Called when the debug stub port has been selected. | 121 // Called when the debug stub port has been selected. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 // Throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. | 237 // Throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. |
238 static unsigned keepalive_throttle_interval_milliseconds_; | 238 static unsigned keepalive_throttle_interval_milliseconds_; |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 240 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace nacl | 243 } // namespace nacl |
244 | 244 |
245 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 245 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
OLD | NEW |