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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/message_pipe.dart

Issue 1029113005: Update mojo sdk to rev cb6c5abfadfea0ca73dca466e2894554ac1ae144 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 5 years, 9 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/mojo/src/mojo/public/dart/src/message_pipe.dart
diff --git a/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart b/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
index 5021c78315d1616ca714fc56636b1db33d6cef76..29ae078b926b8a68252eb8a5342d0c8a99725ccc 100644
--- a/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
+++ b/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
@@ -4,16 +4,6 @@
part of core;
-class _MojoMessagePipeNatives {
- static List MojoCreateMessagePipe(int flags) native "MojoMessagePipe_Create";
-
- static int MojoWriteMessage(int handle, ByteData data, int numBytes,
- List<int> handles, int flags) native "MojoMessagePipe_Write";
-
- static List MojoReadMessage(int handle, ByteData data, int numBytes,
- List<int> handles, int flags) native "MojoMessagePipe_Read";
-}
-
class MojoMessagePipeReadResult {
final MojoResult status;
final int bytesRead;
@@ -60,7 +50,7 @@ class MojoMessagePipeEndpoint {
(handles != null) ? handles.map((h) => h.h).toList() : null;
// Do the call.
- int result = _MojoMessagePipeNatives.MojoWriteMessage(
+ int result = MojoMessagePipeNatives.MojoWriteMessage(
handle.h, data, dataNumBytes, mojoHandles, flags);
status = new MojoResult(result);
@@ -95,7 +85,7 @@ class MojoMessagePipeEndpoint {
}
// Do the call.
- List result = _MojoMessagePipeNatives.MojoReadMessage(
+ List result = MojoMessagePipeNatives.MojoReadMessage(
handle.h, data, dataNumBytes, mojoHandles, flags);
if (result == null) {
@@ -140,7 +130,7 @@ class MojoMessagePipe {
}
factory MojoMessagePipe([int flags = FLAG_NONE]) {
- List result = _MojoMessagePipeNatives.MojoCreateMessagePipe(flags);
+ List result = MojoMessagePipeNatives.MojoCreateMessagePipe(flags);
if (result == null) {
return null;
}

Powered by Google App Engine
This is Rietveld 408576698