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* route_id, |
106 int* route_id, | 106 int32* main_frame_route_id, |
107 int* main_frame_route_id, | 107 int32* main_frame_widget_route_id, |
108 int* surface_id, | 108 int32* surface_id, |
109 SessionStorageNamespace* session_storage_namespace); | 109 SessionStorageNamespace* session_storage_namespace); |
110 void CreateNewWidget(int opener_id, | 110 void CreateNewWidget(int opener_id, |
111 blink::WebPopupType popup_type, | 111 blink::WebPopupType popup_type, |
112 int* route_id, | 112 int* route_id, |
113 int* surface_id); | 113 int* surface_id); |
114 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); | 114 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); |
115 | 115 |
116 private: | 116 private: |
117 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; | 117 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; |
118 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 118 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
119 friend class base::DeleteHelper<RenderWidgetHelper>; | 119 friend class base::DeleteHelper<RenderWidgetHelper>; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 base::AtomicSequenceNumber next_routing_id_; | 152 base::AtomicSequenceNumber next_routing_id_; |
153 | 153 |
154 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 154 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 156 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
157 }; | 157 }; |
158 | 158 |
159 } // namespace content | 159 } // namespace content |
160 | 160 |
161 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 161 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |