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