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

Unified Diff: runtime/include/dart_api.h

Issue 359673002: - Remove Dart_ReceivePortGetId, Dart_GetReceivePort and Dart_PostMessage. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/bin/socket_patch.dart ('k') | runtime/vm/custom_isolate_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 37823)
+++ runtime/include/dart_api.h (working copy)
@@ -1177,31 +1177,17 @@
*/
DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id);
-
-DART_EXPORT Dart_Handle Dart_ReceivePortGetId(Dart_Handle port,
- Dart_Port* port_id);
-
/**
- * Gets the ReceivePort for the provided port id.
- * Returns Dart_Null if a port with the provided port id is not associated with
- * the current isolate.
- *
- * Note that there is at most one ReceivePort for a given port id.
+ * Gets the SendPort id for the provided SendPort.
+ * \param port A SendPort object whose id is desired.
+ * \param port_id Returns the id of the SendPort.
+ * \return Success if no error occurs. Otherwise returns
+ * an error handle.
*/
-DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id);
+DART_EXPORT Dart_Handle Dart_SendPortGetId(Dart_Handle port,
+ Dart_Port* port_id);
-/**
- * Posts an object to the send port.
- *
- * \param send_port A Dart SendPort.
- * \param object An object from the current isolate.
- *
- * \return Success if no error occurs. Otherwise returns an error handle.
- */
-DART_EXPORT Dart_Handle Dart_PostMessage(Dart_Handle send_port,
- Dart_Handle object);
-
/*
* ======
* Scopes
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/vm/custom_isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698