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

Side by Side Diff: android_webview/browser/aw_message_port_service.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 unified diff | Download patch
OLDNEW
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_BROWSER_AW_MESSAGE_PORT_SERVICE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 13
14 class AwMessagePortMessageFilter; 14 class AwMessagePortMessageFilter;
15 15
16 // The interface for AwMessagePortService 16 // The interface for AwMessagePortService
17 class AwMessagePortService { 17 class AwMessagePortService {
18 public: 18 public:
19 virtual ~AwMessagePortService() { } 19 virtual ~AwMessagePortService() { }
20 20
21 virtual void OnConvertedWebToAppMessage( 21 virtual void OnConvertedWebToAppMessage(
22 int message_port_id, 22 int message_port_id,
23 const base::ListValue& message, 23 const base::ListValue& message,
24 const std::vector<int>& sent_message_port_ids) = 0; 24 const std::vector<int>& sent_message_port_ids) = 0;
25 25
26 virtual void OnMessagePortMessageFilterClosing( 26 virtual void OnMessagePortMessageFilterClosing(
27 AwMessagePortMessageFilter* filter) = 0; 27 AwMessagePortMessageFilter* filter) = 0;
28
29 virtual void CleanupPort(int message_port_id) = 0;
28 }; 30 };
29 31
30 } // namespace android_webview 32 } // namespace android_webview
31 33
32 #endif // ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_ 34 #endif // ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_message_port_message_filter.cc ('k') | android_webview/common/aw_message_port_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698