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

Unified Diff: content/public/browser/android/app_web_message_port_service.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Rebase Created 3 years, 11 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/browser/android/app_web_message_port_service.h
diff --git a/content/public/browser/android/app_web_message_port_service.h b/content/public/browser/android/app_web_message_port_service.h
index c1dd51521f27b20a2e0aed70822b4f58252f1661..9ea05db4273af924779ed380700fbd37bf5d8c3a 100644
--- a/content/public/browser/android/app_web_message_port_service.h
+++ b/content/public/browser/android/app_web_message_port_service.h
@@ -10,12 +10,14 @@
#include "base/android/scoped_java_ref.h"
#include "base/values.h"
+#include "content/common/content_export.h"
namespace content {
+class MessagePort;
class WebContents;
// The interface for AppWebMessagePortService
-class AppWebMessagePortService {
+class CONTENT_EXPORT AppWebMessagePortService {
sgurun-gerrit only 2017/01/27 01:16:38 please drop this class and move UnwrapJavaArray an
public:
virtual ~AppWebMessagePortService() {}
@@ -24,7 +26,9 @@ class AppWebMessagePortService {
const base::android::JavaRef<jobjectArray>& ports,
WebContents* web_contents) = 0;
- virtual void CleanupPort(int message_port_id) = 0;
+ static std::vector<MessagePort> UnwrapJavaArray(
+ JNIEnv* env,
+ const base::android::JavaRef<jobjectArray>& ports);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698