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); |
+} |