| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // IO THREAD ONLY ----------------------------------------------------------- | 119 // IO THREAD ONLY ----------------------------------------------------------- |
| 120 | 120 |
| 121 // Lookup the RenderWidgetHelper from the render_process_host_id. Returns NULL | 121 // Lookup the RenderWidgetHelper from the render_process_host_id. Returns NULL |
| 122 // if not found. NOTE: The raw pointer is for temporary use only. To retain, | 122 // if not found. NOTE: The raw pointer is for temporary use only. To retain, |
| 123 // store in a scoped_refptr. | 123 // store in a scoped_refptr. |
| 124 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); | 124 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); |
| 125 | 125 |
| 126 // UI THREAD ONLY ----------------------------------------------------------- | 126 // UI THREAD ONLY ----------------------------------------------------------- |
| 127 | 127 |
| 128 // These three functions provide the backend implementation of the | 128 // These four functions provide the backend implementation of the |
| 129 // corresponding functions in RenderProcessHost. See those declarations | 129 // corresponding functions in RenderProcessHost. See those declarations |
| 130 // for documentation. | 130 // for documentation. |
| 131 void ResumeDeferredNavigation(const GlobalRequestID& request_id); | 131 void ResumeDeferredNavigation(const GlobalRequestID& request_id); |
| 132 void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id); |
| 132 bool WaitForBackingStoreMsg(int render_widget_id, | 133 bool WaitForBackingStoreMsg(int render_widget_id, |
| 133 const base::TimeDelta& max_delay, | 134 const base::TimeDelta& max_delay, |
| 134 IPC::Message* msg); | 135 IPC::Message* msg); |
| 135 // Called to resume the requests for a view after it's ready. The view was | 136 // Called to resume the requests for a view after it's ready. The view was |
| 136 // created by CreateNewWindow which initially blocked the requests. | 137 // created by CreateNewWindow which initially blocked the requests. |
| 137 void ResumeRequestsForView(int route_id); | 138 void ResumeRequestsForView(int route_id); |
| 138 | 139 |
| 139 // IO THREAD ONLY ----------------------------------------------------------- | 140 // IO THREAD ONLY ----------------------------------------------------------- |
| 140 | 141 |
| 141 // Called on the IO thread when a BackingStore message is received. | 142 // Called on the IO thread when a BackingStore message is received. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 int route_id, | 213 int route_id, |
| 213 blink::WebPopupType popup_type); | 214 blink::WebPopupType popup_type); |
| 214 | 215 |
| 215 // Called on the UI thread to create a fullscreen widget. | 216 // Called on the UI thread to create a fullscreen widget. |
| 216 void OnCreateFullscreenWidgetOnUI(int opener_id, int route_id); | 217 void OnCreateFullscreenWidgetOnUI(int opener_id, int route_id); |
| 217 | 218 |
| 218 // Called on the IO thread to resume a paused navigation in the network | 219 // Called on the IO thread to resume a paused navigation in the network |
| 219 // stack without transferring it to a new renderer process. | 220 // stack without transferring it to a new renderer process. |
| 220 void OnResumeDeferredNavigation(const GlobalRequestID& request_id); | 221 void OnResumeDeferredNavigation(const GlobalRequestID& request_id); |
| 221 | 222 |
| 223 // Called on the IO thread to resume a navigation paused immediately after |
| 224 // receiving response headers. |
| 225 void OnResumeResponseDeferredAtStart(const GlobalRequestID& request_id); |
| 226 |
| 222 #if defined(OS_POSIX) | 227 #if defined(OS_POSIX) |
| 223 // Called on destruction to release all allocated transport DIBs | 228 // Called on destruction to release all allocated transport DIBs |
| 224 void ClearAllocatedDIBs(); | 229 void ClearAllocatedDIBs(); |
| 225 | 230 |
| 226 // On POSIX we keep file descriptors to all the allocated DIBs around until | 231 // On POSIX we keep file descriptors to all the allocated DIBs around until |
| 227 // the renderer frees them. | 232 // the renderer frees them. |
| 228 base::Lock allocated_dibs_lock_; | 233 base::Lock allocated_dibs_lock_; |
| 229 std::map<TransportDIB::Id, int> allocated_dibs_; | 234 std::map<TransportDIB::Id, int> allocated_dibs_; |
| 230 #endif | 235 #endif |
| 231 | 236 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 245 base::AtomicSequenceNumber next_routing_id_; | 250 base::AtomicSequenceNumber next_routing_id_; |
| 246 | 251 |
| 247 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 252 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
| 248 | 253 |
| 249 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 254 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
| 250 }; | 255 }; |
| 251 | 256 |
| 252 } // namespace content | 257 } // namespace content |
| 253 | 258 |
| 254 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 259 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
| OLD | NEW |