OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // RenderFrameObserver | 24 // RenderFrameObserver |
25 bool OnMessageReceived(const IPC::Message& message) override; | 25 bool OnMessageReceived(const IPC::Message& message) override; |
26 | 26 |
27 void OnWebToAppMessage(int message_port_id, | 27 void OnWebToAppMessage(int message_port_id, |
28 const base::string16& message, | 28 const base::string16& message, |
29 const std::vector<int>& sent_message_port_ids); | 29 const std::vector<int>& sent_message_port_ids); |
30 void OnAppToWebMessage(int message_port_id, | 30 void OnAppToWebMessage(int message_port_id, |
31 const base::string16& message, | 31 const base::string16& message, |
32 const std::vector<int>& sent_message_port_ids); | 32 const std::vector<int>& sent_message_port_ids); |
| 33 void OnClosePort(int message_port_id); |
33 | 34 |
34 DISALLOW_COPY_AND_ASSIGN(AwMessagePortClient); | 35 DISALLOW_COPY_AND_ASSIGN(AwMessagePortClient); |
35 }; | 36 }; |
36 | 37 |
37 } | 38 } |
38 | 39 |
39 #endif // ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ | 40 #endif // ANDROID_WEBVIEW_RENDERER_AW_MESSAGE_PORT_CLIENT_H_ |
OLD | NEW |