OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const std::string& channel_name, | 64 const std::string& channel_name, |
65 bool include_tls_channel_id); | 65 bool include_tls_channel_id); |
66 void OnOpenChannelToNativeApp(int routing_id, | 66 void OnOpenChannelToNativeApp(int routing_id, |
67 const std::string& source_extension_id, | 67 const std::string& source_extension_id, |
68 const std::string& native_app_name, | 68 const std::string& native_app_name, |
69 int* port_id); | 69 int* port_id); |
70 void OpenChannelToNativeAppOnUIThread(int source_routing_id, | 70 void OpenChannelToNativeAppOnUIThread(int source_routing_id, |
71 int receiver_port_id, | 71 int receiver_port_id, |
72 const std::string& source_extension_id, | 72 const std::string& source_extension_id, |
73 const std::string& native_app_name); | 73 const std::string& native_app_name); |
74 void OnOpenChannelToTab(const ExtensionMsg_TabTargetConnectionInfo& info, | 74 void OnOpenChannelToTab(int routing_id, |
| 75 const ExtensionMsg_TabTargetConnectionInfo& info, |
75 const std::string& extension_id, | 76 const std::string& extension_id, |
76 const std::string& channel_name, | 77 const std::string& channel_name, |
77 int* port_id); | 78 int* port_id); |
78 void OpenChannelToTabOnUIThread( | 79 void OpenChannelToTabOnUIThread( |
79 int source_process_id, | 80 int source_process_id, |
| 81 int source_routing_id, |
80 int receiver_port_id, | 82 int receiver_port_id, |
81 const ExtensionMsg_TabTargetConnectionInfo& info, | 83 const ExtensionMsg_TabTargetConnectionInfo& info, |
82 const std::string& extension_id, | 84 const std::string& extension_id, |
83 const std::string& channel_name); | 85 const std::string& channel_name); |
| 86 void OnOpenMessagePort(int routing_id, int port_id); |
| 87 void OnCloseMessagePort(int routing_id, int port_id, bool force_close); |
84 void OnPostMessage(int port_id, const extensions::Message& message); | 88 void OnPostMessage(int port_id, const extensions::Message& message); |
85 void OnGetExtMessageBundle(const std::string& extension_id, | 89 void OnGetExtMessageBundle(const std::string& extension_id, |
86 IPC::Message* reply_msg); | 90 IPC::Message* reply_msg); |
87 void OnGetExtMessageBundleOnBlockingPool( | 91 void OnGetExtMessageBundleOnBlockingPool( |
88 const std::string& extension_id, | 92 const std::string& extension_id, |
89 IPC::Message* reply_msg); | 93 IPC::Message* reply_msg); |
90 void OnExtensionCloseChannel(int port_id, const std::string& error_message); | |
91 void OnAddAPIActionToExtensionActivityLog( | 94 void OnAddAPIActionToExtensionActivityLog( |
92 const std::string& extension_id, | 95 const std::string& extension_id, |
93 const ExtensionHostMsg_APIActionOrEvent_Params& params); | 96 const ExtensionHostMsg_APIActionOrEvent_Params& params); |
94 void OnAddBlockedCallToExtensionActivityLog( | 97 void OnAddBlockedCallToExtensionActivityLog( |
95 const std::string& extension_id, | 98 const std::string& extension_id, |
96 const std::string& function_name); | 99 const std::string& function_name); |
97 void OnAddDOMActionToExtensionActivityLog( | 100 void OnAddDOMActionToExtensionActivityLog( |
98 const std::string& extension_id, | 101 const std::string& extension_id, |
99 const ExtensionHostMsg_DOMAction_Params& params); | 102 const ExtensionHostMsg_DOMAction_Params& params); |
100 void OnAddEventToExtensionActivityLog( | 103 void OnAddEventToExtensionActivityLog( |
(...skipping 14 matching lines...) Expand all Loading... |
115 Profile* profile_; | 118 Profile* profile_; |
116 | 119 |
117 scoped_refptr<extensions::InfoMap> extension_info_map_; | 120 scoped_refptr<extensions::InfoMap> extension_info_map_; |
118 | 121 |
119 content::NotificationRegistrar notification_registrar_; | 122 content::NotificationRegistrar notification_registrar_; |
120 | 123 |
121 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); | 124 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); |
122 }; | 125 }; |
123 | 126 |
124 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 127 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
OLD | NEW |