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 "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
| 6 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 7 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 8 #include "content/browser/frame_host/render_view_host_manager.h" |
6 #include "content/browser/renderer_host/test_render_view_host.h" | 9 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
8 #include "content/browser/web_contents/navigation_controller_impl.h" | |
9 #include "content/browser/web_contents/navigation_entry_impl.h" | |
10 #include "content/browser/web_contents/render_view_host_manager.h" | |
11 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 11 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
16 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
17 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
18 #include "content/public/browser/render_view_host_observer.h" | 18 #include "content/public/browser/render_view_host_observer.h" |
19 #include "content/public/browser/render_widget_host_iterator.h" | 19 #include "content/public/browser/render_widget_host_iterator.h" |
20 #include "content/public/browser/web_contents_delegate.h" | 20 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 Source<RenderWidgetHost>(host2)); | 1299 Source<RenderWidgetHost>(host2)); |
1300 manager.ShouldClosePage(false, true, base::TimeTicks()); | 1300 manager.ShouldClosePage(false, true, base::TimeTicks()); |
1301 | 1301 |
1302 EXPECT_TRUE( | 1302 EXPECT_TRUE( |
1303 notifications.Check1AndReset(NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED)); | 1303 notifications.Check1AndReset(NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED)); |
1304 EXPECT_FALSE(manager.pending_render_view_host()); | 1304 EXPECT_FALSE(manager.pending_render_view_host()); |
1305 EXPECT_EQ(host, manager.current_host()); | 1305 EXPECT_EQ(host, manager.current_host()); |
1306 } | 1306 } |
1307 | 1307 |
1308 } // namespace content | 1308 } // namespace content |
OLD | NEW |