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/navigator_impl.h" | 5 #include "content/browser/frame_host/navigator_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "content/browser/frame_host/frame_tree.h" | 12 #include "content/browser/frame_host/frame_tree.h" |
13 #include "content/browser/frame_host/frame_tree_node.h" | 13 #include "content/browser/frame_host/frame_tree_node.h" |
14 #include "content/browser/frame_host/navigation_controller_impl.h" | 14 #include "content/browser/frame_host/navigation_controller_impl.h" |
15 #include "content/browser/frame_host/navigation_entry_impl.h" | 15 #include "content/browser/frame_host/navigation_entry_impl.h" |
16 #include "content/browser/frame_host/navigation_handle_impl.h" | 16 #include "content/browser/frame_host/navigation_handle_impl.h" |
17 #include "content/browser/frame_host/navigation_request.h" | 17 #include "content/browser/frame_host/navigation_request.h" |
18 #include "content/browser/frame_host/navigation_request_info.h" | 18 #include "content/browser/frame_host/navigation_request_info.h" |
19 #include "content/browser/frame_host/navigator_delegate.h" | 19 #include "content/browser/frame_host/navigator_delegate.h" |
20 #include "content/browser/frame_host/render_frame_host_impl.h" | 20 #include "content/browser/frame_host/render_frame_host_impl.h" |
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 if (pending_entry != controller_->GetVisibleEntry() || | 1208 if (pending_entry != controller_->GetVisibleEntry() || |
1209 !should_preserve_entry) { | 1209 !should_preserve_entry) { |
1210 controller_->DiscardPendingEntry(true); | 1210 controller_->DiscardPendingEntry(true); |
1211 | 1211 |
1212 // Also force the UI to refresh. | 1212 // Also force the UI to refresh. |
1213 controller_->delegate()->NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); | 1213 controller_->delegate()->NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); |
1214 } | 1214 } |
1215 } | 1215 } |
1216 | 1216 |
1217 } // namespace content | 1217 } // namespace content |
OLD | NEW |