| 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 #ifndef CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ | 5 #ifndef CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ |
| 6 #define CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ | 6 #define CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // particular site merits protection. | 34 // particular site merits protection. |
| 35 static bool AreCrossProcessFramesPossible(); | 35 static bool AreCrossProcessFramesPossible(); |
| 36 | 36 |
| 37 // Returns true if every site should be placed in a dedicated process. | 37 // Returns true if every site should be placed in a dedicated process. |
| 38 static bool UseDedicatedProcessesForAllSites(); | 38 static bool UseDedicatedProcessesForAllSites(); |
| 39 | 39 |
| 40 // Returns true if third-party subframes of a page should be kept in a | 40 // Returns true if third-party subframes of a page should be kept in a |
| 41 // different process from the main frame. | 41 // different process from the main frame. |
| 42 static bool IsTopDocumentIsolationEnabled(); | 42 static bool IsTopDocumentIsolationEnabled(); |
| 43 | 43 |
| 44 // Returns true if there exist origins that require process isolation. Such |
| 45 // origins require a dedicated process, and hence they make cross-process |
| 46 // iframes possible. |
| 47 static bool AreIsolatedOriginsEnabled(); |
| 48 |
| 44 private: | 49 private: |
| 45 SiteIsolationPolicy(); // Not instantiable. | 50 SiteIsolationPolicy(); // Not instantiable. |
| 46 | 51 |
| 47 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy); | 52 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy); |
| 48 }; | 53 }; |
| 49 | 54 |
| 50 } // namespace content | 55 } // namespace content |
| 51 | 56 |
| 52 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ | 57 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ |
| OLD | NEW |