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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // These two functions provide the backend implementation of the | 84 // These two functions provide the backend implementation of the |
85 // corresponding functions in RenderProcessHost. See those declarations | 85 // corresponding functions in RenderProcessHost. See those declarations |
86 // for documentation. | 86 // for documentation. |
87 void ResumeDeferredNavigation(const GlobalRequestID& request_id); | 87 void ResumeDeferredNavigation(const GlobalRequestID& request_id); |
88 | 88 |
89 // IO THREAD ONLY ----------------------------------------------------------- | 89 // IO THREAD ONLY ----------------------------------------------------------- |
90 | 90 |
91 void CreateNewWindow(mojom::CreateNewWindowParamsPtr params, | 91 void CreateNewWindow(mojom::CreateNewWindowParamsPtr params, |
92 bool no_javascript_access, | 92 bool no_javascript_access, |
93 base::ProcessHandle render_process, | 93 int32_t* render_view_route_id, |
94 int32_t* route_id, | |
95 int32_t* main_frame_route_id, | 94 int32_t* main_frame_route_id, |
96 int32_t* main_frame_widget_route_id, | 95 int32_t* main_frame_widget_route_id, |
97 SessionStorageNamespace* session_storage_namespace); | 96 SessionStorageNamespace* session_storage_namespace); |
98 void CreateNewWidget(int opener_id, | 97 void CreateNewWidget(int opener_id, |
99 blink::WebPopupType popup_type, | 98 blink::WebPopupType popup_type, |
100 int* route_id); | 99 int* route_id); |
101 void CreateNewFullscreenWidget(int opener_id, int* route_id); | 100 void CreateNewFullscreenWidget(int opener_id, int* route_id); |
102 | 101 |
103 private: | 102 private: |
104 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; | 103 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; |
105 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 104 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
106 friend class base::DeleteHelper<RenderWidgetHelper>; | 105 friend class base::DeleteHelper<RenderWidgetHelper>; |
107 | 106 |
108 ~RenderWidgetHelper(); | 107 ~RenderWidgetHelper(); |
109 | 108 |
110 // Called on the UI thread to finish creating a window. | 109 // Called on the UI thread to finish creating a window. |
111 void OnCreateWindowOnUI(mojom::CreateNewWindowParamsPtr params, | 110 void OnCreateNewWindowOnUI( |
112 int32_t route_id, | 111 mojom::CreateNewWindowParamsPtr params, |
113 int32_t main_frame_route_id, | 112 int32_t render_view_route_id, |
114 int32_t main_frame_widget_route_id, | 113 int32_t main_frame_route_id, |
115 SessionStorageNamespace* session_storage_namespace); | 114 int32_t main_frame_widget_route_id, |
| 115 SessionStorageNamespace* session_storage_namespace); |
116 | 116 |
117 // Called on the UI thread to finish creating a widget. | 117 // Called on the UI thread to finish creating a widget. |
118 void OnCreateWidgetOnUI(int32_t opener_id, | 118 void OnCreateWidgetOnUI(int32_t opener_id, |
119 int32_t route_id, | 119 int32_t route_id, |
120 blink::WebPopupType popup_type); | 120 blink::WebPopupType popup_type); |
121 | 121 |
122 // Called on the UI thread to create a fullscreen widget. | 122 // Called on the UI thread to create a fullscreen widget. |
123 void OnCreateFullscreenWidgetOnUI(int32_t opener_id, int32_t route_id); | 123 void OnCreateFullscreenWidgetOnUI(int32_t opener_id, int32_t route_id); |
124 | 124 |
125 // Called on the IO thread to resume a paused navigation in the network | 125 // Called on the IO thread to resume a paused navigation in the network |
(...skipping 10 matching lines...) Expand all Loading... |
136 base::AtomicSequenceNumber next_routing_id_; | 136 base::AtomicSequenceNumber next_routing_id_; |
137 | 137 |
138 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 138 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 140 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 145 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |