OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // IO THREAD ONLY ----------------------------------------------------------- | 141 // IO THREAD ONLY ----------------------------------------------------------- |
142 | 142 |
143 // Called on the IO thread when a BackingStore message is received. | 143 // Called on the IO thread when a BackingStore message is received. |
144 void DidReceiveBackingStoreMsg(const IPC::Message& msg); | 144 void DidReceiveBackingStoreMsg(const IPC::Message& msg); |
145 | 145 |
146 void CreateNewWindow( | 146 void CreateNewWindow( |
147 const ViewHostMsg_CreateWindow_Params& params, | 147 const ViewHostMsg_CreateWindow_Params& params, |
148 bool no_javascript_access, | 148 bool no_javascript_access, |
149 base::ProcessHandle render_process, | 149 base::ProcessHandle render_process, |
150 int* route_id, | 150 int* route_id, |
| 151 int* main_frame_route_id, |
151 int* surface_id, | 152 int* surface_id, |
152 SessionStorageNamespace* session_storage_namespace); | 153 SessionStorageNamespace* session_storage_namespace); |
153 void CreateNewWidget(int opener_id, | 154 void CreateNewWidget(int opener_id, |
154 WebKit::WebPopupType popup_type, | 155 WebKit::WebPopupType popup_type, |
155 int* route_id, | 156 int* route_id, |
156 int* surface_id); | 157 int* surface_id); |
157 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); | 158 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); |
158 | 159 |
159 #if defined(OS_POSIX) | 160 #if defined(OS_POSIX) |
160 // Called on the IO thread to handle the allocation of a TransportDIB. If | 161 // Called on the IO thread to handle the allocation of a TransportDIB. If |
(...skipping 28 matching lines...) Expand all Loading... |
189 // Called on the UI thread to discard a paint message. | 190 // Called on the UI thread to discard a paint message. |
190 void OnDiscardBackingStoreMsg(BackingStoreMsgProxy* proxy); | 191 void OnDiscardBackingStoreMsg(BackingStoreMsgProxy* proxy); |
191 | 192 |
192 // Called on the UI thread to dispatch a paint message if necessary. | 193 // Called on the UI thread to dispatch a paint message if necessary. |
193 void OnDispatchBackingStoreMsg(BackingStoreMsgProxy* proxy); | 194 void OnDispatchBackingStoreMsg(BackingStoreMsgProxy* proxy); |
194 | 195 |
195 // Called on the UI thread to finish creating a window. | 196 // Called on the UI thread to finish creating a window. |
196 void OnCreateWindowOnUI( | 197 void OnCreateWindowOnUI( |
197 const ViewHostMsg_CreateWindow_Params& params, | 198 const ViewHostMsg_CreateWindow_Params& params, |
198 int route_id, | 199 int route_id, |
| 200 int main_frame_route_id, |
199 SessionStorageNamespace* session_storage_namespace); | 201 SessionStorageNamespace* session_storage_namespace); |
200 | 202 |
201 // Called on the IO thread after a window was created on the UI thread. | 203 // Called on the IO thread after a window was created on the UI thread. |
202 void OnResumeRequestsForView(int route_id); | 204 void OnResumeRequestsForView(int route_id); |
203 | 205 |
204 // Called on the UI thread to finish creating a widget. | 206 // Called on the UI thread to finish creating a widget. |
205 void OnCreateWidgetOnUI(int opener_id, | 207 void OnCreateWidgetOnUI(int opener_id, |
206 int route_id, | 208 int route_id, |
207 WebKit::WebPopupType popup_type); | 209 WebKit::WebPopupType popup_type); |
208 | 210 |
(...skipping 30 matching lines...) Expand all Loading... |
239 base::AtomicSequenceNumber next_routing_id_; | 241 base::AtomicSequenceNumber next_routing_id_; |
240 | 242 |
241 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 243 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
242 | 244 |
243 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 245 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
244 }; | 246 }; |
245 | 247 |
246 } // namespace content | 248 } // namespace content |
247 | 249 |
248 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 250 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |