| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // the dtor has run. | 256 // the dtor has run. |
| 257 swapout_event_monitor_timeout_.reset(); | 257 swapout_event_monitor_timeout_.reset(); |
| 258 | 258 |
| 259 for (const auto& iter: visual_state_callbacks_) { | 259 for (const auto& iter: visual_state_callbacks_) { |
| 260 iter.second.Run(false); | 260 iter.second.Run(false); |
| 261 } | 261 } |
| 262 | 262 |
| 263 if (render_widget_host_ && | 263 if (render_widget_host_ && |
| 264 render_widget_host_->owned_by_render_frame_host()) { | 264 render_widget_host_->owned_by_render_frame_host()) { |
| 265 // Shutdown causes the RenderWidgetHost to delete itself. | 265 // Shutdown causes the RenderWidgetHost to delete itself. |
| 266 render_widget_host_->Shutdown(); | 266 render_widget_host_->ShutdownWidget(true); |
| 267 } | 267 } |
| 268 | 268 |
| 269 // Notify the FrameTree that this RFH is going away, allowing it to shut down | 269 // Notify the FrameTree that this RFH is going away, allowing it to shut down |
| 270 // the corresponding RenderViewHost if it is no longer needed. | 270 // the corresponding RenderViewHost if it is no longer needed. |
| 271 frame_tree_->ReleaseRenderViewHostRef(render_view_host_); | 271 frame_tree_->ReleaseRenderViewHostRef(render_view_host_); |
| 272 } | 272 } |
| 273 | 273 |
| 274 int RenderFrameHostImpl::GetRoutingID() { | 274 int RenderFrameHostImpl::GetRoutingID() { |
| 275 return routing_id_; | 275 return routing_id_; |
| 276 } | 276 } |
| (...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2378 *dst = src; | 2378 *dst = src; |
| 2379 | 2379 |
| 2380 if (src.routing_id != -1) | 2380 if (src.routing_id != -1) |
| 2381 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2381 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2382 | 2382 |
| 2383 if (src.parent_routing_id != -1) | 2383 if (src.parent_routing_id != -1) |
| 2384 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2384 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 } // namespace content | 2387 } // namespace content |
| OLD | NEW |