Move top_sites_impl.{cc,h} into history component
[chromium-blink-merge.git] / android_webview / browser / aw_message_port_service.h
blob779d90caabe93efc2135eaedf9cda1b13ae63aab
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
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_
8 #include <vector>
10 #include "base/values.h"
12 namespace android_webview {
14 class AwMessagePortMessageFilter;
16 // The interface for AwMessagePortService
17 class AwMessagePortService {
18 public:
19 virtual ~AwMessagePortService() { }
21 virtual void OnConvertedWebToAppMessage(
22 int message_port_id,
23 const base::ListValue& message,
24 const std::vector<int>& sent_message_port_ids) = 0;
26 virtual void OnMessagePortMessageFilterClosing(
27 AwMessagePortMessageFilter* filter) = 0;
29 virtual void CleanupPort(int message_port_id) = 0;
32 } // namespace android_webview
34 #endif // ANDROID_WEBVIEW_BROWSER_AW_MESSAGE_PORT_SERVICE_H_