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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Eliminate unnecessary PostTask Created 3 years, 10 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: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 22bb994a982b845057fc8f3963a109d7e7e9f5ea..364127a76b3d160fbea9e69f0be59c913d34ea27 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -269,7 +269,7 @@ public interface WebContents extends Parcelable {
* Dispatches a Message event to the specified frame.
*/
void postMessageToFrame(String frameName, String message,
- String sourceOrigin, String targetOrigin, int[] sentPortIds);
+ String sourceOrigin, String targetOrigin, MessagePort[] ports);
/**
* Creates a message channel for sending postMessage requests and returns the ports for
@@ -277,7 +277,7 @@ public interface WebContents extends Parcelable {
* @param service The message port service to register the channel with.
* @return The ports that forms the ends of the message channel created.
*/
- MessagePort[] createMessageChannel(MessagePortService service);
+ MessagePort[] createMessageChannel();
/**
* Returns whether the initial empty page has been accessed by a script from another

Powered by Google App Engine
This is Rietveld 408576698