Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: extensions/renderer/extension_frame_helper.h

Issue 2495213007: [Extensions] Use a separate IPC message for extension events (Closed)
Patch Set: lazyboys Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698