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

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: review fixes Created 6 years, 8 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
« no previous file with comments | « no previous file | src/trusted/debug_stub/nacl_debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #if NACL_LINUX || NACL_OSX 94 #if NACL_LINUX || NACL_OSX
95 /* 95 /*
96 * Server socket that will be used by debug stub to accept connections 96 * Server socket that will be used by debug stub to accept connections
97 * from NaCl GDB. This socket descriptor has already had bind() and listen() 97 * from NaCl GDB. This socket descriptor has already had bind() and listen()
98 * called on it. Optional; may be -1. 98 * called on it. Optional; may be -1.
99 */ 99 */
100 int debug_stub_server_bound_socket_fd; 100 int debug_stub_server_bound_socket_fd;
101 #endif 101 #endif
102 102
103 /* 103 /*
104 * Callback called when debug stub port is known. Optional; may be NULL.
105 */
106 void (*debug_stub_server_port_selected_handler_func)(uint16_t port);
107
108 /*
104 * Callback to use for creating shared memory objects. Optional; 109 * Callback to use for creating shared memory objects. Optional;
105 * may be NULL. 110 * may be NULL.
106 */ 111 */
107 NaClCreateMemoryObjectFunc create_memory_object_func; 112 NaClCreateMemoryObjectFunc create_memory_object_func;
108 113
109 /* Cache for NaCl validation judgements. Optional; may be NULL. */ 114 /* Cache for NaCl validation judgements. Optional; may be NULL. */
110 struct NaClValidationCache *validation_cache; 115 struct NaClValidationCache *validation_cache;
111 116
112 #if NACL_WINDOWS 117 #if NACL_WINDOWS
113 /* 118 /*
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 /* 199 /*
195 * DEPRECATED. Calls NaClChromeMainLoad and NaClChromeMainStart. 200 * DEPRECATED. Calls NaClChromeMainLoad and NaClChromeMainStart.
196 * TODO(teravest): Remove this old interface after current users are migrated. 201 * TODO(teravest): Remove this old interface after current users are migrated.
197 */ 202 */
198 void NaClChromeMainStartApp(struct NaClApp *nap, 203 void NaClChromeMainStartApp(struct NaClApp *nap,
199 struct NaClChromeMainArgs *args); 204 struct NaClChromeMainArgs *args);
200 205
201 EXTERN_C_END 206 EXTERN_C_END
202 207
203 #endif 208 #endif
OLDNEW
« no previous file with comments | « no previous file | src/trusted/debug_stub/nacl_debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698