| 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 EXTENSIONS_RENDERER_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_ |
| 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void OnActivateExtension(const std::string& extension_id); | 152 void OnActivateExtension(const std::string& extension_id); |
| 153 void OnCancelSuspend(const std::string& extension_id); | 153 void OnCancelSuspend(const std::string& extension_id); |
| 154 void OnDeliverMessage(int target_port_id, const Message& message); | 154 void OnDeliverMessage(int target_port_id, const Message& message); |
| 155 void OnDispatchOnConnect(int target_port_id, | 155 void OnDispatchOnConnect(int target_port_id, |
| 156 const std::string& channel_name, | 156 const std::string& channel_name, |
| 157 const ExtensionMsg_TabConnectionInfo& source, | 157 const ExtensionMsg_TabConnectionInfo& source, |
| 158 const ExtensionMsg_ExternalConnectionInfo& info, | 158 const ExtensionMsg_ExternalConnectionInfo& info, |
| 159 const std::string& tls_channel_id); | 159 const std::string& tls_channel_id); |
| 160 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); | 160 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); |
| 161 void OnLoaded( | 161 void OnLoaded( |
| 162 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 162 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions, |
| 163 const std::string& webview_partition_id); |
| 163 void OnMessageInvoke(const std::string& extension_id, | 164 void OnMessageInvoke(const std::string& extension_id, |
| 164 const std::string& module_name, | 165 const std::string& module_name, |
| 165 const std::string& function_name, | 166 const std::string& function_name, |
| 166 const base::ListValue& args, | 167 const base::ListValue& args, |
| 167 bool user_gesture); | 168 bool user_gesture); |
| 168 void OnSetChannel(int channel); | 169 void OnSetChannel(int channel); |
| 169 void OnSetFunctionNames(const std::vector<std::string>& names); | 170 void OnSetFunctionNames(const std::vector<std::string>& names); |
| 170 void OnSetScriptingWhitelist( | 171 void OnSetScriptingWhitelist( |
| 171 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 172 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
| 172 void OnSetSystemFont(const std::string& font_family, | 173 void OnSetSystemFont(const std::string& font_family, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 305 |
| 305 // Status of webrequest usage. | 306 // Status of webrequest usage. |
| 306 bool webrequest_used_; | 307 bool webrequest_used_; |
| 307 | 308 |
| 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 309 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 309 }; | 310 }; |
| 310 | 311 |
| 311 } // namespace extensions | 312 } // namespace extensions |
| 312 | 313 |
| 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 314 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |