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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/atomic_sequence_num.h" | 10 #include "base/atomic_sequence_num.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // IO THREAD ONLY ----------------------------------------------------------- | 83 // IO THREAD ONLY ----------------------------------------------------------- |
84 | 84 |
85 // Lookup the RenderWidgetHelper from the render_process_host_id. Returns NULL | 85 // Lookup the RenderWidgetHelper from the render_process_host_id. Returns NULL |
86 // if not found. NOTE: The raw pointer is for temporary use only. To retain, | 86 // if not found. NOTE: The raw pointer is for temporary use only. To retain, |
87 // store in a scoped_refptr. | 87 // store in a scoped_refptr. |
88 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); | 88 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); |
89 | 89 |
90 // UI THREAD ONLY ----------------------------------------------------------- | 90 // UI THREAD ONLY ----------------------------------------------------------- |
91 | 91 |
92 // These four functions provide the backend implementation of the | 92 // These two functions provide the backend implementation of the |
93 // corresponding functions in RenderProcessHost. See those declarations | 93 // corresponding functions in RenderProcessHost. See those declarations |
94 // for documentation. | 94 // for documentation. |
95 void ResumeDeferredNavigation(const GlobalRequestID& request_id); | 95 void ResumeDeferredNavigation(const GlobalRequestID& request_id); |
96 void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id); | |
97 | 96 |
98 // Called to resume the requests for a view after it's ready. The view was | 97 // Called to resume the requests for a view after it's ready. The view was |
99 // created by CreateNewWindow which initially blocked the requests. | 98 // created by CreateNewWindow which initially blocked the requests. |
100 void ResumeRequestsForView(int route_id); | 99 void ResumeRequestsForView(int route_id); |
101 | 100 |
102 // IO THREAD ONLY ----------------------------------------------------------- | 101 // IO THREAD ONLY ----------------------------------------------------------- |
103 | 102 |
104 void CreateNewWindow( | 103 void CreateNewWindow( |
105 const ViewHostMsg_CreateWindow_Params& params, | 104 const ViewHostMsg_CreateWindow_Params& params, |
106 bool no_javascript_access, | 105 bool no_javascript_access, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 base::AtomicSequenceNumber next_routing_id_; | 153 base::AtomicSequenceNumber next_routing_id_; |
155 | 154 |
156 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 155 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
157 | 156 |
158 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 157 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
159 }; | 158 }; |
160 | 159 |
161 } // namespace content | 160 } // namespace content |
162 | 161 |
163 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 162 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |