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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 void CreateNewWindow( | 147 void CreateNewWindow( |
148 const ViewHostMsg_CreateWindow_Params& params, | 148 const ViewHostMsg_CreateWindow_Params& params, |
149 bool no_javascript_access, | 149 bool no_javascript_access, |
150 base::ProcessHandle render_process, | 150 base::ProcessHandle render_process, |
151 int* route_id, | 151 int* route_id, |
152 int* main_frame_route_id, | 152 int* main_frame_route_id, |
153 int* surface_id, | 153 int* surface_id, |
154 SessionStorageNamespace* session_storage_namespace); | 154 SessionStorageNamespace* session_storage_namespace); |
155 void CreateNewWidget(int opener_id, | 155 void CreateNewWidget(int opener_id, |
156 WebKit::WebPopupType popup_type, | 156 blink::WebPopupType popup_type, |
157 int* route_id, | 157 int* route_id, |
158 int* surface_id); | 158 int* surface_id); |
159 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); | 159 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); |
160 | 160 |
161 #if defined(OS_POSIX) | 161 #if defined(OS_POSIX) |
162 // Called on the IO thread to handle the allocation of a TransportDIB. If | 162 // Called on the IO thread to handle the allocation of a TransportDIB. If |
163 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the | 163 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the |
164 // browser, and it is the caller's repsonsibility to call | 164 // browser, and it is the caller's repsonsibility to call |
165 // FreeTransportDIB(). In all cases, the caller is responsible for deleting | 165 // FreeTransportDIB(). In all cases, the caller is responsible for deleting |
166 // the resulting TransportDIB. | 166 // the resulting TransportDIB. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 int route_id, | 200 int route_id, |
201 int main_frame_route_id, | 201 int main_frame_route_id, |
202 SessionStorageNamespace* session_storage_namespace); | 202 SessionStorageNamespace* session_storage_namespace); |
203 | 203 |
204 // Called on the IO thread after a window was created on the UI thread. | 204 // Called on the IO thread after a window was created on the UI thread. |
205 void OnResumeRequestsForView(int route_id); | 205 void OnResumeRequestsForView(int route_id); |
206 | 206 |
207 // Called on the UI thread to finish creating a widget. | 207 // Called on the UI thread to finish creating a widget. |
208 void OnCreateWidgetOnUI(int opener_id, | 208 void OnCreateWidgetOnUI(int opener_id, |
209 int route_id, | 209 int route_id, |
210 WebKit::WebPopupType popup_type); | 210 blink::WebPopupType popup_type); |
211 | 211 |
212 // Called on the UI thread to create a fullscreen widget. | 212 // Called on the UI thread to create a fullscreen widget. |
213 void OnCreateFullscreenWidgetOnUI(int opener_id, int route_id); | 213 void OnCreateFullscreenWidgetOnUI(int opener_id, int route_id); |
214 | 214 |
215 // Called on the IO thread to resume a paused navigation in the network | 215 // Called on the IO thread to resume a paused navigation in the network |
216 // stack without transferring it to a new renderer process. | 216 // stack without transferring it to a new renderer process. |
217 void OnResumeDeferredNavigation(const GlobalRequestID& request_id); | 217 void OnResumeDeferredNavigation(const GlobalRequestID& request_id); |
218 | 218 |
219 #if defined(OS_POSIX) | 219 #if defined(OS_POSIX) |
220 // Called on destruction to release all allocated transport DIBs | 220 // Called on destruction to release all allocated transport DIBs |
(...skipping 21 matching lines...) Expand all Loading... |
242 base::AtomicSequenceNumber next_routing_id_; | 242 base::AtomicSequenceNumber next_routing_id_; |
243 | 243 |
244 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 244 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
245 | 245 |
246 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 246 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
247 }; | 247 }; |
248 | 248 |
249 } // namespace content | 249 } // namespace content |
250 | 250 |
251 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 251 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |