| 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 3ab5b88f69edaac3f972d45336ee745705d12cd6..02402d60bc4fd6310d9b2ced40f4f489d697a101 100644
|
| --- a/android_webview/native/aw_message_port_service_impl.h
|
| +++ b/android_webview/native/aw_message_port_service_impl.h
|
| @@ -39,10 +39,12 @@ class AwMessagePortServiceImpl : public AwMessagePortService {
|
| const std::vector<int>& sent_message_port_ids) override;
|
| void OnMessagePortMessageFilterClosing(
|
| AwMessagePortMessageFilter* filter) override;
|
| + void CleanupPort(int message_port_id) override;
|
|
|
| // Methods called from Java.
|
| void PostAppToWebMessage(JNIEnv* env, jobject object, int sender_id,
|
| jstring message, jintArray sent_ports);
|
| + void ClosePort(JNIEnv* env, jobject object, int message_port_id);
|
|
|
| void RemoveSentPorts(const std::vector<int>& sent_ports);
|
|
|
| @@ -50,7 +52,8 @@ private:
|
| void PostAppToWebMessageOnIOThread(
|
| int sender_id,
|
| base::string16* message,
|
| - std::vector<int>* sent_ports);
|
| + std::vector<int>* sent_ports,
|
| + bool close_port);
|
| void CreateMessageChannelOnIOThread(
|
| scoped_refptr<AwMessagePortMessageFilter> filter,
|
| int* port1,
|
|
|