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

Side by Side Diff: content/public/browser/android/app_web_message_port_service.h

Issue 2375133002: Move MessagePort implementation from android_webview to content (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2015 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 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_APP_WEB_MESSAGE_PORT_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_APP_WEB_MESSAGE_PORT_SERVICE_H_
7
8 #include <jni.h>
9 #include <vector>
10
11 #include "base/values.h"
12
13
14 namespace content {
15 class WebContents;
16
17 // The interface for AppWebMessagePortService
18 class AppWebMessagePortService {
19 public:
20 virtual ~AppWebMessagePortService() { }
21
22 virtual void CreateMessageChannel(
23 JNIEnv* env, jobjectArray ports, WebContents* web_contents) = 0;
24 virtual void OnConvertedWebToAppMessage(
sgurun-gerrit only 2016/09/30 23:40:59 no need to be in public interface?
Yusuf 2016/10/04 21:33:14 Done.
25 int message_port_id,
26 const base::ListValue& message,
27 const std::vector<int>& sent_message_port_ids) = 0;
28
29 virtual void CleanupPort(int message_port_id) = 0;
sgurun-gerrit only 2016/09/30 23:40:59 I don't think you need this in public interface an
Yusuf 2016/10/04 21:33:14 Done.
30
31 virtual void RemoveSentPorts(const std::vector<int>& sent_ports) = 0;
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_APP_WEB_MESSAGE_PORT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698