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

Side by Side Diff: content/public/common/content_features.cc

Issue 2946113002: Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Rebasing... Created 3 years, 5 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). 270 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt).
271 const base::Feature kTokenBinding{"token-binding", 271 const base::Feature kTokenBinding{"token-binding",
272 base::FEATURE_DISABLED_BY_DEFAULT}; 272 base::FEATURE_DISABLED_BY_DEFAULT};
273 273
274 // Groups all out-of-process iframes to a different process from the process of 274 // Groups all out-of-process iframes to a different process from the process of
275 // the top document. This is a performance isolation mode. Launch bug: 275 // the top document. This is a performance isolation mode. Launch bug:
276 // https://crbug.com/595987. 276 // https://crbug.com/595987.
277 const base::Feature kTopDocumentIsolation{"top-document-isolation", 277 const base::Feature kTopDocumentIsolation{"top-document-isolation",
278 base::FEATURE_DISABLED_BY_DEFAULT}; 278 base::FEATURE_DISABLED_BY_DEFAULT};
279 279
280 // Finch Experiment Param (see base::GetFieldTrialParamValueByFeature)
281 // controlling the mode for selecting which subframes end in the TDI process.
282 // Valid values are integers from the TopDocumentIsolationMode enum.
283 const char kTopDocumentIsolationModeParam[] = "mode";
284
280 // Enables touchpad and wheel scroll latching. 285 // Enables touchpad and wheel scroll latching.
281 const base::Feature kTouchpadAndWheelScrollLatching{ 286 const base::Feature kTouchpadAndWheelScrollLatching{
282 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; 287 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
283 288
284 // Use Feature Policy to gate the use of permission features like midi, 289 // Use Feature Policy to gate the use of permission features like midi,
285 // geolocation, camera, microphone, etc. 290 // geolocation, camera, microphone, etc.
286 const base::Feature kUseFeaturePolicyForPermissions{ 291 const base::Feature kUseFeaturePolicyForPermissions{
287 "UseFeaturePolicyForPermissions", base::FEATURE_DISABLED_BY_DEFAULT}; 292 "UseFeaturePolicyForPermissions", base::FEATURE_DISABLED_BY_DEFAULT};
288 293
289 // Use MojoAudioOutputIPC and RenderFrameAudioOutputStreamFactory rather than 294 // Use MojoAudioOutputIPC and RenderFrameAudioOutputStreamFactory rather than
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 #endif 404 #endif
400 405
401 #if defined(OS_MACOSX) 406 #if defined(OS_MACOSX)
402 // The V2 sandbox on MacOS removes the unsandboed warmup phase and sandboxes the 407 // The V2 sandbox on MacOS removes the unsandboed warmup phase and sandboxes the
403 // entire life of the process. 408 // entire life of the process.
404 const base::Feature kMacV2Sandbox{"MacV2Sandbox", 409 const base::Feature kMacV2Sandbox{"MacV2Sandbox",
405 base::FEATURE_DISABLED_BY_DEFAULT}; 410 base::FEATURE_DISABLED_BY_DEFAULT};
406 #endif // defined(OS_MACOSX) 411 #endif // defined(OS_MACOSX)
407 412
408 } // namespace features 413 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698