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/content_client.h" | 9 #include "content/public/common/content_client.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // static | 27 // static |
28 bool SiteIsolationPolicy::UseSubframeNavigationEntries() { | 28 bool SiteIsolationPolicy::UseSubframeNavigationEntries() { |
29 // Enable the new navigation history behavior if any manner of site isolation | 29 // Enable the new navigation history behavior if any manner of site isolation |
30 // is active. | 30 // is active. |
31 return AreCrossProcessFramesPossible(); | 31 return AreCrossProcessFramesPossible(); |
32 } | 32 } |
33 | 33 |
34 // static | 34 // static |
35 bool SiteIsolationPolicy::IsSwappedOutStateForbidden() { | 35 bool SiteIsolationPolicy::IsSwappedOutStateForbidden() { |
36 return AreCrossProcessFramesPossible(); | 36 return true; |
37 } | 37 } |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
OLD | NEW |