| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // if this widget is a popup and what kind of popup it is (select, autofill). | 180 // if this widget is a popup and what kind of popup it is (select, autofill). |
| 181 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); | 181 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); |
| 182 | 182 |
| 183 // Creates a full screen RenderWidget. | 183 // Creates a full screen RenderWidget. |
| 184 void CreateNewFullscreenWidget(int32_t route_id); | 184 void CreateNewFullscreenWidget(int32_t route_id); |
| 185 | 185 |
| 186 // Send RenderViewReady to observers once the process is launched, but not | 186 // Send RenderViewReady to observers once the process is launched, but not |
| 187 // re-entrantly. | 187 // re-entrantly. |
| 188 void PostRenderViewReady(); | 188 void PostRenderViewReady(); |
| 189 | 189 |
| 190 // TODO(creis): Remove after debugging https:/crbug.com/575245. | |
| 191 int main_frame_routing_id() const { | |
| 192 return main_frame_routing_id_; | |
| 193 } | |
| 194 | |
| 195 void set_main_frame_routing_id(int routing_id) { | 190 void set_main_frame_routing_id(int routing_id) { |
| 196 main_frame_routing_id_ = routing_id; | 191 main_frame_routing_id_ = routing_id; |
| 197 } | 192 } |
| 198 | 193 |
| 199 // Increases the refcounting on this RVH. This is done by the FrameTree on | 194 // Increases the refcounting on this RVH. This is done by the FrameTree on |
| 200 // creation of a RenderFrameHost or RenderFrameProxyHost. | 195 // creation of a RenderFrameHost or RenderFrameProxyHost. |
| 201 void increment_ref_count() { ++frames_ref_count_; } | 196 void increment_ref_count() { ++frames_ref_count_; } |
| 202 | 197 |
| 203 // Decreases the refcounting on this RVH. This is done by the FrameTree on | 198 // Decreases the refcounting on this RVH. This is done by the FrameTree on |
| 204 // destruction of a RenderFrameHost or RenderFrameProxyHost. | 199 // destruction of a RenderFrameHost or RenderFrameProxyHost. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool render_view_ready_on_process_launch_; | 328 bool render_view_ready_on_process_launch_; |
| 334 | 329 |
| 335 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 330 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 336 | 331 |
| 337 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 332 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 338 }; | 333 }; |
| 339 | 334 |
| 340 } // namespace content | 335 } // namespace content |
| 341 | 336 |
| 342 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 337 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |