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

Unified Diff: runtime/vm/dart_entry.h

Issue 243973002: - Add a minimal implementation of Capability. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.h
===================================================================
--- runtime/vm/dart_entry.h (revision 35287)
+++ runtime/vm/dart_entry.h (working copy)
@@ -161,31 +161,19 @@
// On success, returns a RawInstance. On failure, a RawError.
static RawObject* Equals(const Instance& left, const Instance& right);
- // Returns the receive port if it is in the port map and null otherwise.
- // On failure, a RawError.
- static RawObject* LookupReceivePort(Dart_Port port_id);
+ // Returns the handler if one has been registered for this port id.
+ static RawObject* LookupHandler(Dart_Port port_id);
// Returns null on success, a RawError on failure.
- static RawObject* HandleMessage(const Object& receive_port,
+ static RawObject* HandleMessage(const Object& handler,
const Instance& dart_message);
- // On success returns new SendPort, on failure returns a RawError.
- static RawObject* NewSendPort(Dart_Port port_id);
-
// map[key] = value;
//
// Returns null on success, a RawError on failure.
static RawObject* MapSetAt(const Instance& map,
const Instance& key,
const Instance& value);
-
- // Gets the _id field of a SendPort/ReceivePort.
- //
- // Returns the value of _id on success, a RawError on failure.
- static RawObject* PortGetId(const Instance& port);
-
- static bool IsSendPort(const Instance& obj);
- static bool IsReceivePort(const Instance& obj);
};
} // namespace dart
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698