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

Unified Diff: content/public/common/content_features.h

Issue 2946113002: Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Rebasing... 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/content_features.h
diff --git a/content/public/common/content_features.h b/content/public/common/content_features.h
index 04178037a82674bef80642d9afbc57903e7bbebe..11e71cb4e3547292e8df4fbe74e6305be81ef165 100644
--- a/content/public/common/content_features.h
+++ b/content/public/common/content_features.h
@@ -72,7 +72,20 @@ CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers;
CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation;
CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames;
CONTENT_EXPORT extern const base::Feature kTokenBinding;
+
CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation;
+
+CONTENT_EXPORT extern const char kTopDocumentIsolationModeParam[];
+enum class TopDocumentIsolationMode {
+ Default = 0,
Łukasz Anforowicz 2017/06/30 15:28:37 Hmmm... maybe this should be spelled kDefault...
+
+ // Isolate all frames that are x-site from the top-level frame.
+ Xsite = 1,
+
+ // Isolate frames that our heursitics recognize as ads.
+ Ads = 2,
+};
Łukasz Anforowicz 2017/06/30 15:28:37 I don't really know what is the best place for dec
Charlie Reis 2017/07/06 20:40:35 I'm not sure either. I guess it feels a bit out o
Łukasz Anforowicz 2017/07/06 21:02:29 asvitkine@ - WDYT / what would you do here? Keep
+
CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching;
CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions;
CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory;

Powered by Google App Engine
This is Rietveld 408576698