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

Unified Diff: runtime/include/dart_native_api.h

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Landing issue Created 3 years, 11 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
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/tools/kernel-service.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_native_api.h
diff --git a/runtime/include/dart_native_api.h b/runtime/include/dart_native_api.h
index fd0e0fb4dc1e8332cc13097cdb1b9d818535a008..12b1b1e05ae17072246a0c79f5203e5c4aa92624 100644
--- a/runtime/include/dart_native_api.h
+++ b/runtime/include/dart_native_api.h
@@ -124,7 +124,8 @@ DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message);
*/
typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id,
- Dart_CObject* message);
+ Dart_CObject* message,
+ void* peer);
/**
* Creates a new native port. When messages are received on this
@@ -135,13 +136,16 @@ typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id,
* \param handler The C handler to run when messages arrive on the port.
* \param handle_concurrently Is it okay to process requests on this
* native port concurrently?
+ * \param peer Peer associated with this port. It will be passed down to the
+ handler when new message arrives.
*
* \return If successful, returns the port id for the native port. In
* case of error, returns ILLEGAL_PORT.
*/
DART_EXPORT Dart_Port Dart_NewNativePort(const char* name,
Dart_NativeMessageHandler handler,
- bool handle_concurrently);
+ bool handle_concurrently,
+ void* peer);
/* TODO(turnidge): Currently handle_concurrently is ignored. */
/**
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/tools/kernel-service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698