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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // if this widget is a popup and what kind of popup it is (select, autofill). | 197 // if this widget is a popup and what kind of popup it is (select, autofill). |
198 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); | 198 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); |
199 | 199 |
200 // Creates a full screen RenderWidget. | 200 // Creates a full screen RenderWidget. |
201 void CreateNewFullscreenWidget(int32_t route_id); | 201 void CreateNewFullscreenWidget(int32_t route_id); |
202 | 202 |
203 // Send RenderViewReady to observers once the process is launched, but not | 203 // Send RenderViewReady to observers once the process is launched, but not |
204 // re-entrantly. | 204 // re-entrantly. |
205 void PostRenderViewReady(); | 205 void PostRenderViewReady(); |
206 | 206 |
207 // TODO(creis): Remove after debugging https:/crbug.com/575245. | |
208 int main_frame_routing_id() const { | |
209 return main_frame_routing_id_; | |
210 } | |
211 | |
212 void set_main_frame_routing_id(int routing_id) { | 207 void set_main_frame_routing_id(int routing_id) { |
213 main_frame_routing_id_ = routing_id; | 208 main_frame_routing_id_ = routing_id; |
214 } | 209 } |
215 | 210 |
216 // Increases the refcounting on this RVH. This is done by the FrameTree on | 211 // Increases the refcounting on this RVH. This is done by the FrameTree on |
217 // creation of a RenderFrameHost or RenderFrameProxyHost. | 212 // creation of a RenderFrameHost or RenderFrameProxyHost. |
218 void increment_ref_count() { ++frames_ref_count_; } | 213 void increment_ref_count() { ++frames_ref_count_; } |
219 | 214 |
220 // Decreases the refcounting on this RVH. This is done by the FrameTree on | 215 // Decreases the refcounting on this RVH. This is done by the FrameTree on |
221 // destruction of a RenderFrameHost or RenderFrameProxyHost. | 216 // destruction of a RenderFrameHost or RenderFrameProxyHost. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 bool render_view_ready_on_process_launch_; | 342 bool render_view_ready_on_process_launch_; |
348 | 343 |
349 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 344 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
350 | 345 |
351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
352 }; | 347 }; |
353 | 348 |
354 } // namespace content | 349 } // namespace content |
355 | 350 |
356 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 351 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |