OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/common/site_isolation_policy.h" | 5 #include "content/common/site_isolation_policy.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "content/public/common/browser_plugin_guest_mode.h" | 9 #include "content/public/common/browser_plugin_guest_mode.h" |
10 #include "content/public/common/browser_side_navigation_policy.h" | 10 #include "content/public/common/browser_side_navigation_policy.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 // static | 30 // static |
31 bool SiteIsolationPolicy::UseSubframeNavigationEntries() { | 31 bool SiteIsolationPolicy::UseSubframeNavigationEntries() { |
32 // Enable the new navigation history behavior if any manner of site isolation | 32 // Enable the new navigation history behavior if any manner of site isolation |
33 // is active. | 33 // is active. |
34 // PlzNavigate: also enable the new navigation history behavior. | 34 // PlzNavigate: also enable the new navigation history behavior. |
35 return AreCrossProcessFramesPossible() || IsBrowserSideNavigationEnabled(); | 35 return AreCrossProcessFramesPossible() || IsBrowserSideNavigationEnabled(); |
36 } | 36 } |
37 | 37 |
38 // static | |
39 bool SiteIsolationPolicy::IsSwappedOutStateForbidden() { | |
40 return true; | |
41 } | |
42 | |
43 } // namespace content | 38 } // namespace content |
OLD | NEW |