Index: android_webview/native/aw_message_port_service_impl.h |
diff --git a/android_webview/native/aw_message_port_service_impl.h b/android_webview/native/aw_message_port_service_impl.h |
index d938b6eb0b05512ff19a0ee19688b97d3176fde8..8d21995a359f72095c075b0d37d2407bde263364 100644 |
--- a/android_webview/native/aw_message_port_service_impl.h |
+++ b/android_webview/native/aw_message_port_service_impl.h |
@@ -33,14 +33,24 @@ class AwMessagePortServiceImpl : public AwMessagePortService { |
scoped_refptr<AwMessagePortMessageFilter> filter); |
// AwMessagePortService implementation |
- void OnConvertedMessage( |
+ void OnConvertedInMessage( |
int message_port_id, |
const base::ListValue& message, |
const std::vector<int>& sent_message_port_ids) override; |
void OnMessagePortMessageFilterClosing( |
AwMessagePortMessageFilter* filter) override; |
+ // Methods called from Java. |
+ void PostOutMessage(JNIEnv* env, jobject object, int sender_id, |
+ jstring message, jintArray sent_ports); |
+ |
+ void RemoveSentPorts(const std::vector<int>& sent_ports); |
+ |
private: |
+ void PostOutMessageOnIOThread( |
+ int sender_id, |
+ base::string16* message, |
+ std::vector<int>* sent_ports); |
void CreateMessageChannelOnIOThread( |
scoped_refptr<AwMessagePortMessageFilter> filter, |
int* port1, |