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

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

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)
Patch Set: rebaseline2 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.h
diff --git a/third_party/WebKit/Source/core/mojo/MojoHandle.h b/third_party/WebKit/Source/core/mojo/MojoHandle.h
index 78fa9138b91b48b5c6a4a888a89e79b86c7a4235..61e4048c9319dfebd50acf8cab5b4db12af46f09 100644
--- a/third_party/WebKit/Source/core/mojo/MojoHandle.h
+++ b/third_party/WebKit/Source/core/mojo/MojoHandle.h
@@ -11,7 +11,10 @@
namespace blink {
class ArrayBufferOrArrayBufferView;
+class MojoCreateSharedBufferResult;
+class MojoDuplicateBufferHandleOptions;
class MojoHandleSignals;
+class MojoMapBufferResult;
class MojoReadMessageFlags;
class MojoReadMessageResult;
class MojoWatchCallback;
@@ -29,10 +32,17 @@ class MojoHandle final : public GarbageCollectedFinalized<MojoHandle>,
MojoWatcher* watch(ScriptState*,
const MojoHandleSignals&,
MojoWatchCallback*);
+
+ // MessagePipe handle.
MojoResult writeMessage(ArrayBufferOrArrayBufferView&,
const HeapVector<Member<MojoHandle>>&);
void readMessage(const MojoReadMessageFlags&, MojoReadMessageResult&);
+ // SharedBuffer handle.
+ void mapBuffer(unsigned offset, unsigned numBytes, MojoMapBufferResult&);
+ void duplicateBufferHandle(const MojoDuplicateBufferHandleOptions&,
+ MojoCreateSharedBufferResult&);
+
DEFINE_INLINE_TRACE() {}
private:

Powered by Google App Engine
This is Rietveld 408576698