| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSION_FRAME_HELPER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| 6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // IPC handlers. | 119 // IPC handlers. |
| 120 void OnExtensionValidateMessagePort(int port_id); | 120 void OnExtensionValidateMessagePort(int port_id); |
| 121 void OnExtensionDispatchOnConnect( | 121 void OnExtensionDispatchOnConnect( |
| 122 int target_port_id, | 122 int target_port_id, |
| 123 const std::string& channel_name, | 123 const std::string& channel_name, |
| 124 const ExtensionMsg_TabConnectionInfo& source, | 124 const ExtensionMsg_TabConnectionInfo& source, |
| 125 const ExtensionMsg_ExternalConnectionInfo& info, | 125 const ExtensionMsg_ExternalConnectionInfo& info, |
| 126 const std::string& tls_channel_id); | 126 const std::string& tls_channel_id); |
| 127 void OnExtensionDeliverMessage(int target_port_id, | 127 void OnExtensionDeliverMessage(int target_port_id, |
| 128 int source_tab_id, | |
| 129 const Message& message); | 128 const Message& message); |
| 130 void OnExtensionDispatchOnDisconnect(int port_id, | 129 void OnExtensionDispatchOnDisconnect(int port_id, |
| 131 const std::string& error_message); | 130 const std::string& error_message); |
| 132 void OnExtensionSetTabId(int tab_id); | 131 void OnExtensionSetTabId(int tab_id); |
| 133 void OnUpdateBrowserWindowId(int browser_window_id); | 132 void OnUpdateBrowserWindowId(int browser_window_id); |
| 134 void OnNotifyRendererViewType(ViewType view_type); | 133 void OnNotifyRendererViewType(ViewType view_type); |
| 135 void OnExtensionResponse(int request_id, | 134 void OnExtensionResponse(int request_id, |
| 136 bool success, | 135 bool success, |
| 137 const base::ListValue& response, | 136 const base::ListValue& response, |
| 138 const std::string& error); | 137 const std::string& error); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool delayed_main_world_script_initialization_ = false; | 170 bool delayed_main_world_script_initialization_ = false; |
| 172 | 171 |
| 173 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 172 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
| 174 | 173 |
| 175 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 174 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 } // namespace extensions | 177 } // namespace extensions |
| 179 | 178 |
| 180 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 179 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| OLD | NEW |