Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: content/common/site_isolation_policy.h

Issue 2831683002: Introduce support for origins that require process isolation. (Closed)
Patch Set: Charlie's comments (round 3) Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | content/common/site_isolation_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | content/common/site_isolation_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698