| 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 navigation and history code should maintain per-frame | |
| 45 // navigation entries. This is an in-progress feature related to site | |
| 46 // isolation, so the return value is currently tied to --site-per-process. | |
| 47 // TODO(creis, avi): Make this the default, and eliminate this. | |
| 48 static bool UseSubframeNavigationEntries(); | |
| 49 | |
| 50 private: | 44 private: |
| 51 SiteIsolationPolicy(); // Not instantiable. | 45 SiteIsolationPolicy(); // Not instantiable. |
| 52 | 46 |
| 53 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy); | 47 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy); |
| 54 }; | 48 }; |
| 55 | 49 |
| 56 } // namespace content | 50 } // namespace content |
| 57 | 51 |
| 58 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ | 52 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ |
| OLD | NEW |