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

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

Issue 1785153005: Remove SiteIsolationPolicy::IsSwappedOutStateForbidden(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT. Created 4 years, 9 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
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 25 matching lines...) Expand all
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 navigation and history code should maintain per-frame 40 // Returns true if navigation and history code should maintain per-frame
41 // navigation entries. This is an in-progress feature related to site 41 // navigation entries. This is an in-progress feature related to site
42 // isolation, so the return value is currently tied to --site-per-process. 42 // isolation, so the return value is currently tied to --site-per-process.
43 // TODO(creis, avi): Make this the default, and eliminate this. 43 // TODO(creis, avi): Make this the default, and eliminate this.
44 static bool UseSubframeNavigationEntries(); 44 static bool UseSubframeNavigationEntries();
45 45
46 // Returns true if we are currently in a mode where the swapped out state
47 // should not be used. Currently (as an implementation strategy) swapped out
48 // is forbidden under --site-per-process, but our goal is to eliminate the
49 // mode entirely. In code that deals with the swapped out state, prefer calls
50 // to this function over consulting the switches directly. It will be easier
51 // to grep, and easier to rip out.
52 //
53 // TODO(nasko): When swappedout:// is eliminated entirely, this function
54 // should be removed and its callers cleaned up.
55 static bool IsSwappedOutStateForbidden();
56
57 private: 46 private:
58 SiteIsolationPolicy(); // Not instantiable. 47 SiteIsolationPolicy(); // Not instantiable.
59 48
60 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy); 49 DISALLOW_COPY_AND_ASSIGN(SiteIsolationPolicy);
61 }; 50 };
62 51
63 } // namespace content 52 } // namespace content
64 53
65 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_ 54 #endif // CONTENT_COMMON_SITE_ISOLATION_POLICY_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_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