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

Unified Diff: third_party/WebKit/Source/core/mojo/MojoHandle.idl

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)
Patch Set: adds layout tests Created 3 years, 10 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
Index: third_party/WebKit/Source/core/mojo/MojoHandle.idl
diff --git a/third_party/WebKit/Source/core/mojo/MojoHandle.idl b/third_party/WebKit/Source/core/mojo/MojoHandle.idl
index 34b1dfc97eec0b9fdfba22eb17b66a65d9ac1fdb..4557f9471a8fe9bc74f63e091d01bfc732e425b8 100644
--- a/third_party/WebKit/Source/core/mojo/MojoHandle.idl
+++ b/third_party/WebKit/Source/core/mojo/MojoHandle.idl
@@ -9,6 +9,14 @@ callback MojoWatchCallback = void (MojoResult result);
] interface MojoHandle {
void close();
[CallWith=ScriptState] MojoWatcher watch(MojoHandleSignals signals, MojoWatchCallback callback);
+
+ // TODO(alokp): Create MessagePipeHandle, a subclass of MojoHandle
+ // and move the following member functions.
MojoResult writeMessage(BufferSource buffer, sequence<MojoHandle> handles);
MojoReadMessageResult readMessage(optional MojoReadMessageFlags flags);
+
+ // TODO(alokp): Create SharedBufferHandle, a subclass of MojoHandle
+ // and move the following member functions.
+ MojoMapBufferResult mapBuffer(unsigned long offset, unsigned long numBytes);
+ MojoCreateSharedBufferResult clone(optional MojoCloneBufferHandleFlags flags);
};

Powered by Google App Engine
This is Rietveld 408576698