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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/MessageChannel.java

Issue 387113003: Add a content API to create a message channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address mikhail's comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698