| 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/navigation_controller_impl.h" | 5 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <tuple> | 11 #include <tuple> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "content/browser/frame_host/cross_site_transferring_request.h" |
| 23 #include "content/browser/frame_host/frame_navigation_entry.h" | 24 #include "content/browser/frame_host/frame_navigation_entry.h" |
| 24 #include "content/browser/frame_host/navigation_entry_impl.h" | 25 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 25 #include "content/browser/frame_host/navigation_entry_screenshot_manager.h" | 26 #include "content/browser/frame_host/navigation_entry_screenshot_manager.h" |
| 26 #include "content/browser/frame_host/navigation_request.h" | 27 #include "content/browser/frame_host/navigation_request.h" |
| 27 #include "content/browser/frame_host/navigator.h" | 28 #include "content/browser/frame_host/navigator.h" |
| 28 #include "content/browser/frame_host/navigator_impl.h" | 29 #include "content/browser/frame_host/navigator_impl.h" |
| 29 #include "content/browser/site_instance_impl.h" | 30 #include "content/browser/site_instance_impl.h" |
| 30 #include "content/browser/web_contents/web_contents_impl.h" | 31 #include "content/browser/web_contents/web_contents_impl.h" |
| 31 #include "content/common/frame_messages.h" | 32 #include "content/common/frame_messages.h" |
| 32 #include "content/common/frame_owner_properties.h" | 33 #include "content/common/frame_owner_properties.h" |
| (...skipping 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5329 // means that occasionally a navigation conflict will end up with one entry | 5330 // means that occasionally a navigation conflict will end up with one entry |
| 5330 // bubbling to the end of the entry list, but that's the least-bad option. | 5331 // bubbling to the end of the entry list, but that's the least-bad option. |
| 5331 EXPECT_EQ(3, controller.GetEntryCount()); | 5332 EXPECT_EQ(3, controller.GetEntryCount()); |
| 5332 EXPECT_EQ(2, controller.GetCurrentEntryIndex()); | 5333 EXPECT_EQ(2, controller.GetCurrentEntryIndex()); |
| 5333 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL()); | 5334 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL()); |
| 5334 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL()); | 5335 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL()); |
| 5335 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL()); | 5336 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL()); |
| 5336 } | 5337 } |
| 5337 | 5338 |
| 5338 } // namespace content | 5339 } // namespace content |
| OLD | NEW |