| 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/site_instance_impl.h" | 5 #include "content/browser/site_instance_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
| 16 #include "content/browser/browsing_instance.h" | 16 #include "content/browser/browsing_instance.h" |
| 17 #include "content/browser/child_process_security_policy_impl.h" | |
| 18 #include "content/browser/frame_host/navigation_entry_impl.h" | 17 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 19 #include "content/browser/renderer_host/render_process_host_impl.h" | 18 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 20 #include "content/browser/renderer_host/render_view_host_impl.h" | 19 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 20 #include "content/browser/shared/child_process_security_policy_helper.h" |
| 21 #include "content/browser/web_contents/web_contents_impl.h" | 21 #include "content/browser/web_contents/web_contents_impl.h" |
| 22 #include "content/browser/webui/content_web_ui_controller_factory.h" | 22 #include "content/browser/webui/content_web_ui_controller_factory.h" |
| 23 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 23 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 24 #include "content/public/common/content_client.h" | 24 #include "content/public/common/content_client.h" |
| 25 #include "content/public/common/content_constants.h" | 25 #include "content/public/common/content_constants.h" |
| 26 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
| 27 #include "content/public/common/url_constants.h" | 27 #include "content/public/common/url_constants.h" |
| 28 #include "content/public/common/url_utils.h" | 28 #include "content/public/common/url_utils.h" |
| 29 #include "content/public/test/mock_render_process_host.h" | 29 #include "content/public/test/mock_render_process_host.h" |
| 30 #include "content/public/test/test_browser_context.h" | 30 #include "content/public/test/test_browser_context.h" |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 EXPECT_EQ(1, browser_client()->GetAndClearSiteInstanceDeleteCount()); | 841 EXPECT_EQ(1, browser_client()->GetAndClearSiteInstanceDeleteCount()); |
| 842 EXPECT_EQ(0, browser_client()->GetAndClearBrowsingInstanceDeleteCount()); | 842 EXPECT_EQ(0, browser_client()->GetAndClearBrowsingInstanceDeleteCount()); |
| 843 | 843 |
| 844 // Free the subframe instance, which should free the browsing instance. | 844 // Free the subframe instance, which should free the browsing instance. |
| 845 subframe_instance = nullptr; | 845 subframe_instance = nullptr; |
| 846 EXPECT_EQ(1, browser_client()->GetAndClearSiteInstanceDeleteCount()); | 846 EXPECT_EQ(1, browser_client()->GetAndClearSiteInstanceDeleteCount()); |
| 847 EXPECT_EQ(1, browser_client()->GetAndClearBrowsingInstanceDeleteCount()); | 847 EXPECT_EQ(1, browser_client()->GetAndClearBrowsingInstanceDeleteCount()); |
| 848 } | 848 } |
| 849 | 849 |
| 850 } // namespace content | 850 } // namespace content |
| OLD | NEW |