OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.content.browser; |
| 6 |
| 7 /** |
| 8 * Represents the MessageChannel object. Inspired by |
| 9 * http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.htm
l#message-channels |
| 10 */ |
| 11 class MessageChannel { |
| 12 private int mPort1; |
| 13 private int mPort2; |
| 14 |
| 15 MessageChannel(int port1, int port2) { |
| 16 mPort1 = port1; |
| 17 mPort2 = port2; |
| 18 } |
| 19 |
| 20 int port1() { return mPort1; } |
| 21 int port2() { return mPort2; } |
| 22 } |
OLD | NEW |