| 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 #include "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 root->pending_frame_host()->SetNavigationHandle( | 549 root->pending_frame_host()->SetNavigationHandle( |
| 550 std::unique_ptr<NavigationHandleImpl>()); | 550 std::unique_ptr<NavigationHandleImpl>()); |
| 551 } | 551 } |
| 552 root->current_frame_host()->SetRenderFrameCreated(false); | 552 root->current_frame_host()->SetRenderFrameCreated(false); |
| 553 root->current_frame_host()->SetNavigationHandle( | 553 root->current_frame_host()->SetNavigationHandle( |
| 554 std::unique_ptr<NavigationHandleImpl>()); | 554 std::unique_ptr<NavigationHandleImpl>()); |
| 555 | 555 |
| 556 // PlzNavigate: clear up state specific to browser-side navigation. | 556 // PlzNavigate: clear up state specific to browser-side navigation. |
| 557 if (IsBrowserSideNavigationEnabled()) { | 557 if (IsBrowserSideNavigationEnabled()) { |
| 558 // Do not update state as the WebContents is being destroyed. | 558 // Do not update state as the WebContents is being destroyed. |
| 559 frame_tree_.root()->ResetNavigationRequest(true); | 559 frame_tree_.root()->ResetNavigationRequest(true, true); |
| 560 if (root->speculative_frame_host()) { | 560 if (root->speculative_frame_host()) { |
| 561 root->speculative_frame_host()->SetRenderFrameCreated(false); | 561 root->speculative_frame_host()->SetRenderFrameCreated(false); |
| 562 root->speculative_frame_host()->SetNavigationHandle( | 562 root->speculative_frame_host()->SetNavigationHandle( |
| 563 std::unique_ptr<NavigationHandleImpl>()); | 563 std::unique_ptr<NavigationHandleImpl>()); |
| 564 } | 564 } |
| 565 } | 565 } |
| 566 | 566 |
| 567 #if BUILDFLAG(ENABLE_PLUGINS) | 567 #if BUILDFLAG(ENABLE_PLUGINS) |
| 568 // Call this before WebContentsDestroyed() is broadcasted since | 568 // Call this before WebContentsDestroyed() is broadcasted since |
| 569 // AudioFocusManager will be destroyed after that. | 569 // AudioFocusManager will be destroyed after that. |
| (...skipping 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5393 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); | 5393 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); |
| 5394 if (!render_view_host) | 5394 if (!render_view_host) |
| 5395 continue; | 5395 continue; |
| 5396 render_view_host_set.insert(render_view_host); | 5396 render_view_host_set.insert(render_view_host); |
| 5397 } | 5397 } |
| 5398 for (RenderViewHost* render_view_host : render_view_host_set) | 5398 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5399 render_view_host->OnWebkitPreferencesChanged(); | 5399 render_view_host->OnWebkitPreferencesChanged(); |
| 5400 } | 5400 } |
| 5401 | 5401 |
| 5402 } // namespace content | 5402 } // namespace content |
| OLD | NEW |