| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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_public.browser; | |
| 6 | |
| 7 /** | |
| 8 * An interface for creating and managing channels with {@link MessagePort}s on
both ends. | |
| 9 */ | |
| 10 public interface MessagePortService { | |
| 11 /** | |
| 12 * @return Two {@link MessagePort}s that forms the ends of a message channel
created. The user | |
| 13 * of the API should send one of these to the main frame of the tab
that should be | |
| 14 * receiving the messages and hold onto the other one. | |
| 15 */ | |
| 16 MessagePort[] createMessageChannel(); | |
| 17 } | |
| OLD | NEW |