| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 CannotScriptWebstore); | 158 CannotScriptWebstore); |
| 159 | 159 |
| 160 // RenderThreadObserver implementation: | 160 // RenderThreadObserver implementation: |
| 161 bool OnControlMessageReceived(const IPC::Message& message) override; | 161 bool OnControlMessageReceived(const IPC::Message& message) override; |
| 162 void IdleNotification() override; | 162 void IdleNotification() override; |
| 163 void OnRenderProcessShutdown() override; | 163 void OnRenderProcessShutdown() override; |
| 164 | 164 |
| 165 void OnActivateExtension(const std::string& extension_id); | 165 void OnActivateExtension(const std::string& extension_id); |
| 166 void OnCancelSuspend(const std::string& extension_id); | 166 void OnCancelSuspend(const std::string& extension_id); |
| 167 void OnDeliverMessage(int target_port_id, | 167 void OnDeliverMessage(int target_port_id, |
| 168 int source_tab_id, | |
| 169 const Message& message); | 168 const Message& message); |
| 170 void OnDispatchOnConnect(int target_port_id, | 169 void OnDispatchOnConnect(int target_port_id, |
| 171 const std::string& channel_name, | 170 const std::string& channel_name, |
| 172 const ExtensionMsg_TabConnectionInfo& source, | 171 const ExtensionMsg_TabConnectionInfo& source, |
| 173 const ExtensionMsg_ExternalConnectionInfo& info, | 172 const ExtensionMsg_ExternalConnectionInfo& info, |
| 174 const std::string& tls_channel_id); | 173 const std::string& tls_channel_id); |
| 175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); | 174 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); |
| 176 void OnLoaded( | 175 void OnLoaded( |
| 177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 176 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
| 178 void OnMessageInvoke(const std::string& extension_id, | 177 void OnMessageInvoke(const std::string& extension_id, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // if this renderer is a WebView guest render process. Otherwise, this will be | 298 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 300 // empty. | 299 // empty. |
| 301 std::string webview_partition_id_; | 300 std::string webview_partition_id_; |
| 302 | 301 |
| 303 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 302 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 304 }; | 303 }; |
| 305 | 304 |
| 306 } // namespace extensions | 305 } // namespace extensions |
| 307 | 306 |
| 308 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 307 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |