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

Unified Diff: android_webview/browser/aw_message_port_message_filter.h

Issue 956763002: Implement the close() API for Message ports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Nasko review Created 5 years, 10 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
« no previous file with comments | « no previous file | android_webview/browser/aw_message_port_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_message_port_message_filter.h
diff --git a/android_webview/browser/aw_message_port_message_filter.h b/android_webview/browser/aw_message_port_message_filter.h
index 5e0b9a0b4a37a8dd964d4ac8833f2f14c0e75e22..2845068ec6a367350a5fc4e8a12fb0de3bdc2ba0 100644
--- a/android_webview/browser/aw_message_port_message_filter.h
+++ b/android_webview/browser/aw_message_port_message_filter.h
@@ -26,13 +26,13 @@ class AwMessagePortMessageFilter : public content::BrowserMessageFilter,
void SendAppToWebMessage(int msg_port_route_id,
const base::string16& message,
const std::vector<int>& sent_message_port_ids);
+ void SendClosePortMessage(int message_port_id);
// MessagePortDelegate implementation.
void SendMessage(int msg_port_route_id,
const base::string16& message,
const std::vector<int>& sent_message_port_ids) override;
void SendMessagesAreQueued(int route_id) override;
-
private:
friend class content::BrowserThread;
friend class base::DeleteHelper<AwMessagePortMessageFilter>;
@@ -41,6 +41,7 @@ class AwMessagePortMessageFilter : public content::BrowserMessageFilter,
int msg_port_id,
const base::string16& message,
const std::vector<int>& sent_message_port_ids);
+ void OnClosePortAck(int message_port_id);
~AwMessagePortMessageFilter() override;
« no previous file with comments | « no previous file | android_webview/browser/aw_message_port_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698