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

Side by Side Diff: third_party/WebKit/Source/core/frame/Settings.json5

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" Created 3 years, 7 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 { 1 {
2 // Defines properties which are available on the Settings object. 2 // Defines properties which are available on the Settings object.
3 // 3 //
4 // Please think carefully before adding a new Setting. Some questions to 4 // Please think carefully before adding a new Setting. Some questions to
5 // consider are: 5 // consider are:
6 // - Should this be a RuntimeEnabledFeature instead? Settings are for things 6 // - Should this be a RuntimeEnabledFeature instead? Settings are for things
7 // which we support either values of at runtime. Features are set at render er 7 // which we support either values of at runtime. Features are set at render er
8 // process startup and are never changed. Features also tend to be set to a 8 // process startup and are never changed. Features also tend to be set to a
9 // value based on the platform or the stability of the code in question, whe re 9 // value based on the platform or the stability of the code in question, whe re
10 // as settings both codepaths need to be stable. 10 // as settings both codepaths need to be stable.
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 invalidate: "ViewportDescription", 559 invalidate: "ViewportDescription",
560 }, 560 },
561 561
562 { 562 {
563 name: "dnsPrefetchingEnabled", 563 name: "dnsPrefetchingEnabled",
564 initial: false, 564 initial: false,
565 invalidate: "DNSPrefetching", 565 invalidate: "DNSPrefetching",
566 }, 566 },
567 567
568 { 568 {
569 name: "dataSaverEnabled", 569 name: "dataSaverFlag",
570 initial: false, 570 initial: "WebDataSaverFlag::kDisabled",
571 type: "WebDataSaverFlag",
571 }, 572 },
572 573
573 // Clients that execute script should call ExecutionContext::canExecuteScrip ts() 574 // Clients that execute script should call ExecutionContext::canExecuteScrip ts()
574 // instead of this function. ExecutionContext::canExecuteScripts() checks th e 575 // instead of this function. ExecutionContext::canExecuteScripts() checks th e
575 // HTML sandbox, plugin sandboxing, and other important details. 576 // HTML sandbox, plugin sandboxing, and other important details.
576 { 577 {
577 name: "scriptEnabled", 578 name: "scriptEnabled",
578 initial: false, 579 initial: false,
579 }, 580 },
580 581
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 }, 920 },
920 921
921 // Defines the autoplay policy to use. 922 // Defines the autoplay policy to use.
922 { 923 {
923 name: "autoplayPolicy", 924 name: "autoplayPolicy",
924 type: "AutoplayPolicy::Type", 925 type: "AutoplayPolicy::Type",
925 initial: "AutoplayPolicy::Type::kNoUserGestureRequired", 926 initial: "AutoplayPolicy::Type::kNoUserGestureRequired",
926 }, 927 },
927 ], 928 ],
928 } 929 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698