| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void OnExtensionSetTabId(int tab_id); | 129 void OnExtensionSetTabId(int tab_id); |
| 130 void OnUpdateBrowserWindowId(int browser_window_id); | 130 void OnUpdateBrowserWindowId(int browser_window_id); |
| 131 void OnNotifyRendererViewType(ViewType view_type); | 131 void OnNotifyRendererViewType(ViewType view_type); |
| 132 void OnExtensionResponse(int request_id, | 132 void OnExtensionResponse(int request_id, |
| 133 bool success, | 133 bool success, |
| 134 const base::ListValue& response, | 134 const base::ListValue& response, |
| 135 const std::string& error); | 135 const std::string& error); |
| 136 void OnExtensionMessageInvoke(const std::string& extension_id, | 136 void OnExtensionMessageInvoke(const std::string& extension_id, |
| 137 const std::string& module_name, | 137 const std::string& module_name, |
| 138 const std::string& function_name, | 138 const std::string& function_name, |
| 139 const base::ListValue& args, | 139 const base::ListValue& args); |
| 140 bool user_gesture); | |
| 141 void OnAssignPortId(int port_id, int request_id); | 140 void OnAssignPortId(int port_id, int request_id); |
| 142 | 141 |
| 143 // Type of view associated with the RenderFrame. | 142 // Type of view associated with the RenderFrame. |
| 144 ViewType view_type_; | 143 ViewType view_type_; |
| 145 | 144 |
| 146 // The id of the tab the render frame is attached to. | 145 // The id of the tab the render frame is attached to. |
| 147 int tab_id_; | 146 int tab_id_; |
| 148 | 147 |
| 149 // The id of the browser window the render frame is attached to. | 148 // The id of the browser window the render frame is attached to. |
| 150 int browser_window_id_; | 149 int browser_window_id_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 169 bool delayed_main_world_script_initialization_ = false; | 168 bool delayed_main_world_script_initialization_ = false; |
| 170 | 169 |
| 171 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 170 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 172 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 } // namespace extensions | 175 } // namespace extensions |
| 177 | 176 |
| 178 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 177 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| OLD | NEW |