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/feature_list.h" | 8 #include "base/feature_list.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "content/public/common/browser_side_navigation_policy.h" | 10 #include "content/public/common/browser_side_navigation_policy.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // static | 31 // static |
32 bool SiteIsolationPolicy::IsTopDocumentIsolationEnabled() { | 32 bool SiteIsolationPolicy::IsTopDocumentIsolationEnabled() { |
33 // --site-per-process trumps --top-document-isolation. | 33 // --site-per-process trumps --top-document-isolation. |
34 if (UseDedicatedProcessesForAllSites()) | 34 if (UseDedicatedProcessesForAllSites()) |
35 return false; | 35 return false; |
36 | 36 |
37 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 37 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
38 switches::kTopDocumentIsolation); | 38 switches::kTopDocumentIsolation); |
39 } | 39 } |
40 | 40 |
41 // static | |
42 bool SiteIsolationPolicy::UseSubframeNavigationEntries() { | |
43 return true; | |
44 } | |
45 | |
46 } // namespace content | 41 } // namespace content |
OLD | NEW |