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

Unified Diff: mojo/public/java/org/chromium/mojo/system/Core.java

Issue 228723002: Java API for mojo system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to system namespace. 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
Index: mojo/public/java/org/chromium/mojo/system/Core.java
diff --git a/mojo/public/java/org/chromium/mojo/system/Core.java b/mojo/public/java/org/chromium/mojo/system/Core.java
new file mode 100644
index 0000000000000000000000000000000000000000..cb8a78168a6c3bdb27f14e84b2fd22d05f6ba6aa
--- /dev/null
+++ b/mojo/public/java/org/chromium/mojo/system/Core.java
@@ -0,0 +1,57 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.mojo.system;
+
+import org.chromium.mojo.system.Handle.WaitFlags;
+
+import java.util.List;
+
+/**
+ * Core mojo interface giving access to the base operations.
+ */
+public interface Core {
+
+ /**
+ * TODO(qsr):
+ *
+ * @return TODO(qsr)
+ */
+ public long getTimeTicksNow();
+
+ /**
+ * TODO(qsr)
+ *
+ * @param handles
+ * @param flags
+ * @param deadline
+ */
+ public void waitMany(List<Handle> handles, List<WaitFlags> flags, long deadline);
+
+ /**
+ * TODO(qsr)
+ *
+ * @return TODO(qsr)
+ */
+ public Pair<MessagePipeHandle, MessagePipeHandle> createMessagePipe();
+
+ /**
+ * TODO(qsr):
+ *
+ * @param options
+ * @return TODO(qsr)
+ */
+ public Pair<DataPipe.ProducerHandle, DataPipe.ConsumerHandle> createMessagePipe(
+ DataPipe.CreateOptions options);
+
+ /**
+ * TODO(qsr):
+ *
+ * @param options
+ * @param numBytes
+ * @return TODO(qsr)
+ */
+ public SharedBufferHandle createSharedBuffer(SharedBufferHandle.CreateOptions options,
+ long numBytes);
+}

Powered by Google App Engine
This is Rietveld 408576698