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

Side by Side Diff: src/public/chrome_main.h

Issue 206493005: Provide chrome the option of learning the debug stub port chosen by nacl. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_
8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1
9 9
10 #include "native_client/src/include/nacl_base.h" 10 #include "native_client/src/include/nacl_base.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #if NACL_LINUX || NACL_OSX 93 #if NACL_LINUX || NACL_OSX
94 /* 94 /*
95 * Server socket that will be used by debug stub to accept connections 95 * Server socket that will be used by debug stub to accept connections
96 * from NaCl GDB. This socket descriptor has already had bind() and listen() 96 * from NaCl GDB. This socket descriptor has already had bind() and listen()
97 * called on it. Optional; may be -1. 97 * called on it. Optional; may be -1.
98 */ 98 */
99 int debug_stub_server_bound_socket_fd; 99 int debug_stub_server_bound_socket_fd;
100 #endif 100 #endif
101 101
102 /* 102 /*
103 * Callback called when debug stub port is know. Optional; may be NULL.
Mark Seaborn 2014/03/26 23:17:35 "known"
bradn 2014/04/01 18:31:20 Done.
104 */
105 void (*debug_stub_server_port_selected_handler_func)(uint16_t port);
106
107 /*
103 * Callback to use for creating shared memory objects. Optional; 108 * Callback to use for creating shared memory objects. Optional;
104 * may be NULL. 109 * may be NULL.
105 */ 110 */
106 NaClCreateMemoryObjectFunc create_memory_object_func; 111 NaClCreateMemoryObjectFunc create_memory_object_func;
107 112
108 /* Cache for NaCl validation judgements. Optional; may be NULL. */ 113 /* Cache for NaCl validation judgements. Optional; may be NULL. */
109 struct NaClValidationCache *validation_cache; 114 struct NaClValidationCache *validation_cache;
110 115
111 #if NACL_WINDOWS 116 #if NACL_WINDOWS
112 /* 117 /*
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); 186 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void);
182 187
183 /* Launch NaCl. This does not return. */ 188 /* Launch NaCl. This does not return. */
184 void NaClChromeMainStartApp(struct NaClApp *nap, 189 void NaClChromeMainStartApp(struct NaClApp *nap,
185 struct NaClChromeMainArgs *args); 190 struct NaClChromeMainArgs *args);
186 191
187 192
188 EXTERN_C_END 193 EXTERN_C_END
189 194
190 #endif 195 #endif
OLDNEW
« no previous file with comments | « no previous file | src/trusted/debug_stub/nacl_debug.cc » ('j') | src/trusted/debug_stub/nacl_debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698