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

Unified Diff: mojo/bindings/java/src/org/chromium/mojo/bindings/Message.java

Issue 407733006: Move mojo java bindings to mojo/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 6 years, 5 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/bindings/java/src/org/chromium/mojo/bindings/Message.java
diff --git a/mojo/bindings/java/src/org/chromium/mojo/bindings/Message.java b/mojo/bindings/java/src/org/chromium/mojo/bindings/Message.java
deleted file mode 100644
index 07bd2bd2e4697516242c73ef017cb10fbe4a198b..0000000000000000000000000000000000000000
--- a/mojo/bindings/java/src/org/chromium/mojo/bindings/Message.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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.bindings;
-
-import org.chromium.mojo.system.Handle;
-import org.chromium.mojo.system.MessagePipeHandle;
-
-import java.nio.ByteBuffer;
-import java.util.List;
-
-/**
- * A raw message to be sent/received from a {@link MessagePipeHandle}.
- */
-public final class Message {
-
- /**
- * The data of the message.
- */
- public final ByteBuffer buffer;
-
- /**
- * The handles of the message.
- */
- public final List<? extends Handle> handles;
-
- /**
- * Constructor.
- *
- * @param buffer The buffer containing the bytes to send. This must be a direct buffer.
- * @param handles The list of handles to send.
- */
- public Message(ByteBuffer buffer, List<? extends Handle> handles) {
- assert buffer.isDirect();
- this.buffer = buffer;
- this.handles = handles;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698