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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // corresponding functions in RenderProcessHost. See those declarations | 92 // corresponding functions in RenderProcessHost. See those declarations |
93 // for documentation. | 93 // for documentation. |
94 void ResumeDeferredNavigation(const GlobalRequestID& request_id); | 94 void ResumeDeferredNavigation(const GlobalRequestID& request_id); |
95 | 95 |
96 // Called to resume the requests for a view after it's ready. The view was | 96 // Called to resume the requests for a view after it's ready. The view was |
97 // created by CreateNewWindow which initially blocked the requests. | 97 // created by CreateNewWindow which initially blocked the requests. |
98 void ResumeRequestsForView(int route_id); | 98 void ResumeRequestsForView(int route_id); |
99 | 99 |
100 // IO THREAD ONLY ----------------------------------------------------------- | 100 // IO THREAD ONLY ----------------------------------------------------------- |
101 | 101 |
102 void CreateNewWindow( | 102 void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params, |
103 const ViewHostMsg_CreateWindow_Params& params, | 103 bool no_javascript_access, |
104 bool no_javascript_access, | 104 base::ProcessHandle render_process, |
105 base::ProcessHandle render_process, | 105 int32_t* route_id, |
106 int* route_id, | 106 int32_t* main_frame_route_id, |
107 int* main_frame_route_id, | 107 int32_t* main_frame_widget_route_id, |
108 SessionStorageNamespace* session_storage_namespace); | 108 SessionStorageNamespace* session_storage_namespace); |
109 void CreateNewWidget(int opener_id, | 109 void CreateNewWidget(int opener_id, |
110 blink::WebPopupType popup_type, | 110 blink::WebPopupType popup_type, |
111 int* route_id); | 111 int* route_id); |
112 void CreateNewFullscreenWidget(int opener_id, int* route_id); | 112 void CreateNewFullscreenWidget(int opener_id, int* route_id); |
113 | 113 |
114 private: | 114 private: |
115 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; | 115 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; |
116 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 116 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
117 friend class base::DeleteHelper<RenderWidgetHelper>; | 117 friend class base::DeleteHelper<RenderWidgetHelper>; |
118 | 118 |
119 ~RenderWidgetHelper(); | 119 ~RenderWidgetHelper(); |
120 | 120 |
121 // Called on the UI thread to finish creating a window. | 121 // Called on the UI thread to finish creating a window. |
122 void OnCreateWindowOnUI( | 122 void OnCreateWindowOnUI(const ViewHostMsg_CreateWindow_Params& params, |
123 const ViewHostMsg_CreateWindow_Params& params, | 123 int32_t route_id, |
124 int route_id, | 124 int32_t main_frame_route_id, |
125 int main_frame_route_id, | 125 int32_t main_frame_widget_route_id, |
126 SessionStorageNamespace* session_storage_namespace); | 126 SessionStorageNamespace* session_storage_namespace); |
127 | 127 |
128 // Called on the IO thread after a window was created on the UI thread. | 128 // Called on the IO thread after a window was created on the UI thread. |
129 void OnResumeRequestsForView(int route_id); | 129 void OnResumeRequestsForView(int route_id); |
130 | 130 |
131 // Called on the UI thread to finish creating a widget. | 131 // Called on the UI thread to finish creating a widget. |
132 void OnCreateWidgetOnUI(int32 opener_id, | 132 void OnCreateWidgetOnUI(int32 opener_id, |
133 int32 route_id, | 133 int32 route_id, |
134 blink::WebPopupType popup_type); | 134 blink::WebPopupType popup_type); |
135 | 135 |
136 // Called on the UI thread to create a fullscreen widget. | 136 // Called on the UI thread to create a fullscreen widget. |
(...skipping 13 matching lines...) Expand all Loading... |
150 base::AtomicSequenceNumber next_routing_id_; | 150 base::AtomicSequenceNumber next_routing_id_; |
151 | 151 |
152 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 152 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 154 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace content | 157 } // namespace content |
158 | 158 |
159 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 159 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |