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

Unified Diff: runtime/vm/native_message_handler.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/vm/native_api_impl.cc ('k') | runtime/vm/native_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_message_handler.h
diff --git a/runtime/vm/native_message_handler.h b/runtime/vm/native_message_handler.h
index 713366261f687e261815fe45523dd54153fa537e..270064e125eac04426948df19b32ea180ba5690c 100644
--- a/runtime/vm/native_message_handler.h
+++ b/runtime/vm/native_message_handler.h
@@ -15,11 +15,14 @@ namespace dart {
// native C handlers.
class NativeMessageHandler : public MessageHandler {
public:
- NativeMessageHandler(const char* name, Dart_NativeMessageHandler func);
+ NativeMessageHandler(const char* name,
+ Dart_NativeMessageHandler func,
+ void* peer);
~NativeMessageHandler();
const char* name() const { return name_; }
Dart_NativeMessageHandler func() const { return func_; }
+ void* peer() const { return peer_; }
MessageStatus HandleMessage(Message* message);
@@ -34,6 +37,7 @@ class NativeMessageHandler : public MessageHandler {
private:
char* name_;
Dart_NativeMessageHandler func_;
+ void* peer_;
};
} // namespace dart
« no previous file with comments | « runtime/vm/native_api_impl.cc ('k') | runtime/vm/native_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698