OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 7 #include <stdint.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/browser/frame_host/frame_tree.h" | 23 #include "content/browser/frame_host/frame_tree.h" |
24 #include "content/browser/frame_host/navigation_entry_impl.h" | 24 #include "content/browser/frame_host/navigation_entry_impl.h" |
25 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 25 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
26 #include "content/browser/web_contents/web_contents_impl.h" | 26 #include "content/browser/web_contents/web_contents_impl.h" |
27 #include "content/common/frame_messages.h" | 27 #include "content/common/frame_messages.h" |
28 #include "content/common/page_state_serialization.h" | 28 #include "content/common/page_state_serialization.h" |
29 #include "content/common/site_isolation_policy.h" | 29 #include "content/common/site_isolation_policy.h" |
30 #include "content/public/browser/navigation_controller.h" | 30 #include "content/public/browser/navigation_controller.h" |
31 #include "content/public/browser/navigation_handle.h" | 31 #include "content/public/browser/navigation_handle.h" |
32 #include "content/public/browser/render_view_host.h" | 32 #include "content/public/browser/render_view_host.h" |
33 #include "content/public/browser/resource_controller.h" | |
34 #include "content/public/browser/resource_dispatcher_host.h" | 33 #include "content/public/browser/resource_dispatcher_host.h" |
35 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 34 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
36 #include "content/public/browser/resource_throttle.h" | 35 #include "content/public/browser/resource_throttle.h" |
37 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
38 #include "content/public/browser/web_contents_delegate.h" | 37 #include "content/public/browser/web_contents_delegate.h" |
39 #include "content/public/browser/web_contents_observer.h" | 38 #include "content/public/browser/web_contents_observer.h" |
40 #include "content/public/common/bindings_policy.h" | 39 #include "content/public/common/bindings_policy.h" |
41 #include "content/public/common/browser_side_navigation_policy.h" | 40 #include "content/public/common/browser_side_navigation_policy.h" |
42 #include "content/public/common/renderer_preferences.h" | 41 #include "content/public/common/renderer_preferences.h" |
43 #include "content/public/common/url_constants.h" | 42 #include "content/public/common/url_constants.h" |
(...skipping 6987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7031 NavigationHandleCommitObserver handle_observer(shell()->web_contents(), | 7030 NavigationHandleCommitObserver handle_observer(shell()->web_contents(), |
7032 kFragmentURL); | 7031 kFragmentURL); |
7033 EXPECT_TRUE(NavigateToURL(shell(), kFragmentURL)); | 7032 EXPECT_TRUE(NavigateToURL(shell(), kFragmentURL)); |
7034 | 7033 |
7035 EXPECT_TRUE(handle_observer.has_committed()); | 7034 EXPECT_TRUE(handle_observer.has_committed()); |
7036 EXPECT_TRUE(handle_observer.was_same_page()); | 7035 EXPECT_TRUE(handle_observer.was_same_page()); |
7037 EXPECT_FALSE(handle_observer.was_renderer_initiated()); | 7036 EXPECT_FALSE(handle_observer.was_renderer_initiated()); |
7038 } | 7037 } |
7039 | 7038 |
7040 } // namespace content | 7039 } // namespace content |
OLD | NEW |