Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: components/nacl/loader/nacl_listener.cc

Issue 198083006: Update the task manager with the debug stub port chosen by nacl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/nacl/loader/nacl_listener.cc
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index f49e3f3a3676e5e769bf42f20b13932f4880aa5a..e42bcc36504d44f8618ea84ea2b5b31909e6d48a 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -109,6 +109,10 @@ int AttachDebugExceptionHandler(const void* info, size_t info_size) {
return result;
}
+void DebugStubPortSelectedHandler(uint16_t port) {
+ g_listener->Send(new NaClProcessHostMsg_DebugStubPortSelected(port));
+}
+
#endif
// Creates the PPAPI IPC channel between the NaCl IRT and the host
@@ -458,6 +462,8 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
#if defined(OS_WIN)
args->broker_duplicate_handle_func = BrokerDuplicateHandle;
args->attach_debug_exception_handler_func = AttachDebugExceptionHandler;
+ args->debug_stub_server_port_selected_handler_func =
+ DebugStubPortSelectedHandler;
#endif
#if defined(OS_LINUX)
args->prereserved_sandbox_size = prereserved_sandbox_size_;
« components/nacl/browser/nacl_process_host.cc ('K') | « components/nacl/common/nacl_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698