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

Side by Side Diff: chrome/app/policy/policy_templates.json

Issue 5958014: Policy: Add ProxyMode and deprecate ProxyServerMode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests on all platforms Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 { 1 {
2 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
11 # pair where the value has a given type. Chrome looks up the values using the 11 # pair where the value has a given type. Chrome looks up the values using the
12 # names of the policies. In the user interface where the values can be set, 12 # names of the policies. In the user interface where the values can be set,
13 # related policies might appear together in policy groups. The grouping is not 13 # related policies might appear together in policy groups. The grouping is not
14 # visible to Chrome. 14 # visible to Chrome.
15 # 15 #
16 # This file contains a list of policies and groups. Each group contains a list 16 # This file contains a list of policies and groups. Each group contains a list
17 # of policies under the key 'policies'. All the policies and groups must have 17 # of policies under the key 'policies'. All the policies and groups must have
18 # unique names. Group names are not exposed to Chrome at all. 18 # unique names. Group names are not exposed to Chrome at all.
19 # 19 #
20 # Each policy has a type. The currently implemented types: 20 # Each policy has a type. The currently implemented types:
21 # 'group': - not a real policy, contains a list of policies 21 # 'group': - not a real policy, contains a list of policies
22 # NOTE: Currently nesting groups inside other groups is not supported. 22 # NOTE: Currently nesting groups inside other groups is not supported.
23 # 'string' - a string value 23 # 'string' - a string value
24 # 'enum' - the user can select its value from a collection of items 24 # 'int-enum' - the user can select an integer value from a collection of
25 # items
26 # 'string-enum' - the user can select a string value from a collection of
27 # items
25 # 'main' - a boolean value 28 # 'main' - a boolean value
26 # 'list' - a list of string values 29 # 'list' - a list of string values
27 # 30 #
28 # Policy group descriptions, policy captions and similar texts are localized 31 # Policy group descriptions, policy captions and similar texts are localized
29 # strings taken from the <message> nodes of the .grd file. Their name 32 # strings taken from the <message> nodes of the .grd file. Their name
30 # attributes are generated from the JSON keys. 33 # attributes are generated from the JSON keys.
31 # Each item (policy or group) may have the following messages: 34 # Each item (policy or group) may have the following messages:
32 # - description: 35 # - description:
33 # Describes the item it applies to. 36 # Describes the item it applies to.
34 # - caption 37 # - caption
(...skipping 30 matching lines...) Expand all
65 # supported under the key 'supported_on'. Each item of this list has the 68 # supported under the key 'supported_on'. Each item of this list has the
66 # form of 'product:since_version-until_version', which means that support 69 # form of 'product:since_version-until_version', which means that support
67 # for the policy in 'product' was introduced in 'since_version' and removed 70 # for the policy in 'product' was introduced in 'since_version' and removed
68 # after 'until_version'. Product names may contain a suffix specifying a 71 # after 'until_version'. Product names may contain a suffix specifying a
69 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version 72 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version
70 # numbers can be any string that does not contain ':' or '-' characters. 73 # numbers can be any string that does not contain ':' or '-' characters.
71 # 74 #
72 # Currently supported product names: 75 # Currently supported product names:
73 # 'chrome_frame', 'chrome_os' 76 # 'chrome_frame', 'chrome_os'
74 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*' 77 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*'
75 # For example if 'chrome.*:5-10' is specified for a policy, then it should 78 # For example if 'chrome.*:5-10' is specified for a policy, then it should
76 # be read as: 79 # be read as:
77 # 'chrome.linux:5-10,chrome.mac:5-10,chrome.win:5-10' 80 # 'chrome.linux:5-10,chrome.mac:5-10,chrome.win:5-10'
78 # The product name also affects in which templates will the policy be included . 81 # The product name also affects in which templates will the policy be included .
79 # chrome.*, chrome.win, chrome_frame -> ADM,ADMX,ADML,doc 82 # chrome.*, chrome.win, chrome_frame -> ADM,ADMX,ADML,doc
80 # chrome.*, chrome.linux -> JSON,doc 83 # chrome.*, chrome.linux -> JSON,doc
81 # chrome.*, chrome.mac -> plist, plist_strings,doc 84 # chrome.*, chrome.mac -> plist, plist_strings,doc
82 # everything else -> doc 85 # everything else -> doc
83 # 86 #
84 'policy_definitions': [ 87 'policy_definitions': [
85 { 88 {
86 'name': 'Homepage', 89 'name': 'Homepage',
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 'annotations': { 246 'annotations': {
244 'features': {'dynamic_refresh': 1}, 247 'features': {'dynamic_refresh': 1},
245 'example_value': True, 248 'example_value': True,
246 } 249 }
247 }, 250 },
248 { 251 {
249 'name': 'Proxy', 252 'name': 'Proxy',
250 'type': 'group', 253 'type': 'group',
251 'policies': [ 254 'policies': [
252 { 255 {
256 'name': 'ProxyMode',
257 'type': 'string-enum',
258 'items': [
259 {'name': 'ProxyDisabled', 'value': 'direct'},
260 {'name': 'ProxyAutoDetect', 'value': 'auto_detect'},
261 {'name': 'ProxyPacScript', 'value': 'pac_script'},
262 {'name': 'ProxyFixedServers', 'value': 'fixed_servers'},
263 {'name': 'ProxyUseSystem', 'value': 'system'},
264 ],
265 'supported_on': ['chrome.*:10-'],
266 'annotations': {
267 'features': {'dynamic_refresh': 1},
268 'example_value': 'direct'
269 }
270 },
271 {
253 'name': 'ProxyServerMode', 272 'name': 'ProxyServerMode',
254 'type': 'enum', 273 'type': 'int-enum',
255 'items': [ 274 'items': [
256 {'name': 'ProxyServerDisabled', 'value': '0'}, 275 {'name': 'ProxyServerDisabled', 'value': 0},
257 {'name': 'ProxyServerAutoDetect', 'value': '1'}, 276 {'name': 'ProxyServerAutoDetect', 'value': 1},
258 {'name': 'ProxyServerManual', 'value': '2'}, 277 {'name': 'ProxyServerManual', 'value': 2},
259 {'name': 'ProxyServerUseSystem', 'value': '3'}, 278 {'name': 'ProxyServerUseSystem', 'value': 3},
260 ], 279 ],
261 'supported_on': ['chrome.*:8-'], 280 'supported_on': ['chrome.*:8-'],
281 'deprecated' : True,
262 'annotations': { 282 'annotations': {
263 'features': {'dynamic_refresh': 1}, 283 'features': {'dynamic_refresh': 1},
264 'example_value': 2, 284 'example_value': 2,
265 } 285 }
266 }, 286 },
267 { 287 {
268 'name': 'ProxyServer', 288 'name': 'ProxyServer',
269 'type': 'string', 289 'type': 'string',
270 'supported_on': ['chrome.*:8-'], 290 'supported_on': ['chrome.*:8-'],
271 'annotations': { 291 'annotations': {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 'annotations': { 425 'annotations': {
406 'features': {'dynamic_refresh': 1}, 426 'features': {'dynamic_refresh': 1},
407 'example_value': False, 427 'example_value': False,
408 } 428 }
409 }, 429 },
410 { 430 {
411 'name': 'RestoreOnStartupGroup', 431 'name': 'RestoreOnStartupGroup',
412 'type': 'group', 432 'type': 'group',
413 'policies': [{ 433 'policies': [{
414 'name': 'RestoreOnStartup', 434 'name': 'RestoreOnStartup',
415 'type': 'enum', 435 'type': 'int-enum',
416 'items': [ 436 'items': [
417 {'name': 'RestoreOnStartupIsNone', 'value': '0'}, 437 {'name': 'RestoreOnStartupIsNone', 'value': 0},
418 {'name': 'RestoreOnStartupIsLastSession', 'value': '1'}, 438 {'name': 'RestoreOnStartupIsLastSession', 'value': 1},
419 {'name': 'RestoreOnStartupIsURLs', 'value': '4'}, 439 {'name': 'RestoreOnStartupIsURLs', 'value': 4},
420 ], 440 ],
421 'supported_on': ['chrome.*:8-'], 441 'supported_on': ['chrome.*:8-'],
422 'annotations': { 442 'annotations': {
423 'features': {'dynamic_refresh': 1}, 443 'features': {'dynamic_refresh': 1},
424 'example_value': 4, 444 'example_value': 4,
425 } 445 }
426 },{ 446 },{
427 'name': 'RestoreOnStartupURLs', 447 'name': 'RestoreOnStartupURLs',
428 'type': 'list', 448 'type': 'list',
429 'supported_on': ['chrome.*:8-'], 449 'supported_on': ['chrome.*:8-'],
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 521 }
502 }, 522 },
503 ] 523 ]
504 }, 524 },
505 { 525 {
506 'name': 'ContentSettings', 526 'name': 'ContentSettings',
507 'type': 'group', 527 'type': 'group',
508 'policies': [ 528 'policies': [
509 { 529 {
510 'name': 'DefaultCookiesSetting', 530 'name': 'DefaultCookiesSetting',
511 'type': 'enum', 531 'type': 'int-enum',
512 'items': [ 532 'items': [
513 {'name': 'AllowCookies', 'value': '0'}, 533 {'name': 'AllowCookies', 'value': 0},
514 {'name': 'BlockCookies', 'value': '1'}, 534 {'name': 'BlockCookies', 'value': 1},
515 ], 535 ],
516 'supported_on': ['chrome.*:10-'], 536 'supported_on': ['chrome.*:10-'],
517 'annotations': { 537 'annotations': {
518 'features': {'dynamic_refresh': 1}, 538 'features': {'dynamic_refresh': 1},
519 'example_value': 0, 539 'example_value': 0,
520 } 540 }
521 }, 541 },
522 { 542 {
523 'name': 'DefaultImagesSetting', 543 'name': 'DefaultImagesSetting',
524 'type': 'enum', 544 'type': 'int-enum',
525 'items': [ 545 'items': [
526 {'name': 'AllowImages', 'value': '0'}, 546 {'name': 'AllowImages', 'value': 0},
527 {'name': 'BlockImages', 'value': '1'}, 547 {'name': 'BlockImages', 'value': 1},
528 ], 548 ],
529 'supported_on': ['chrome.*:10-'], 549 'supported_on': ['chrome.*:10-'],
530 'annotations': { 550 'annotations': {
531 'features': {'dynamic_refresh': 1}, 551 'features': {'dynamic_refresh': 1},
532 'example_value': 0, 552 'example_value': 0,
533 } 553 }
534 }, 554 },
535 { 555 {
536 'name': 'DefaultJavaScriptSetting', 556 'name': 'DefaultJavaScriptSetting',
537 'type': 'enum', 557 'type': 'int-enum',
538 'items': [ 558 'items': [
539 {'name': 'AllowJavaScript', 'value': '0'}, 559 {'name': 'AllowJavaScript', 'value': 0},
540 {'name': 'BlockJavaScript', 'value': '1'}, 560 {'name': 'BlockJavaScript', 'value': 1},
541 ], 561 ],
542 'supported_on': ['chrome.*:10-'], 562 'supported_on': ['chrome.*:10-'],
543 'annotations': { 563 'annotations': {
544 'features': {'dynamic_refresh': 1}, 564 'features': {'dynamic_refresh': 1},
545 'example_value': 0, 565 'example_value': 0,
546 } 566 }
547 }, 567 },
548 { 568 {
549 'name': 'DefaultPluginsSetting', 569 'name': 'DefaultPluginsSetting',
550 'type': 'enum', 570 'type': 'int-enum',
551 'items': [ 571 'items': [
552 {'name': 'AllowPlugins', 'value': '0'}, 572 {'name': 'AllowPlugins', 'value': 0},
553 {'name': 'BlockPlugins', 'value': '1'}, 573 {'name': 'BlockPlugins', 'value': 1},
554 ], 574 ],
555 'supported_on': ['chrome.*:10-'], 575 'supported_on': ['chrome.*:10-'],
556 'annotations': { 576 'annotations': {
557 'features': {'dynamic_refresh': 1}, 577 'features': {'dynamic_refresh': 1},
558 'example_value': 0, 578 'example_value': 0,
559 } 579 }
560 }, 580 },
561 { 581 {
562 'name': 'DefaultPopupsSetting', 582 'name': 'DefaultPopupsSetting',
563 'type': 'enum', 583 'type': 'int-enum',
564 'items': [ 584 'items': [
565 {'name': 'AllowPopups', 'value': '0'}, 585 {'name': 'AllowPopups', 'value': 0},
566 {'name': 'BlockPopups', 'value': '1'}, 586 {'name': 'BlockPopups', 'value': 1},
567 ], 587 ],
568 'supported_on': ['chrome.*:10-'], 588 'supported_on': ['chrome.*:10-'],
569 'annotations': { 589 'annotations': {
570 'features': {'dynamic_refresh': 1}, 590 'features': {'dynamic_refresh': 1},
571 'example_value': 1, 591 'example_value': 1,
572 } 592 }
573 }, 593 },
574 { 594 {
575 'name': 'DefaultNotificationSetting', 595 'name': 'DefaultNotificationSetting',
576 'type': 'enum', 596 'type': 'int-enum',
577 'items': [ 597 'items': [
578 {'name': 'AllowNotifications', 'value': '0'}, 598 {'name': 'AllowNotifications', 'value': 0},
579 {'name': 'BlockNotifications', 'value': '1'}, 599 {'name': 'BlockNotifications', 'value': 1},
580 {'name': 'AskNotifications', 'value': '2'}, 600 {'name': 'AskNotifications', 'value': 2},
581 ], 601 ],
582 'supported_on': ['chrome.*:10-'], 602 'supported_on': ['chrome.*:10-'],
583 'annotations': { 603 'annotations': {
584 'features': {'dynamic_refresh': 1}, 604 'features': {'dynamic_refresh': 1},
585 'example_value': 2, 605 'example_value': 2,
586 } 606 }
587 }, 607 },
588 { 608 {
589 'name': 'DefaultGeolocationSetting', 609 'name': 'DefaultGeolocationSetting',
590 'type': 'enum', 610 'type': 'int-enum',
591 'items': [ 611 'items': [
592 {'name': 'AllowGeolocation', 'value': '0'}, 612 {'name': 'AllowGeolocation', 'value': 0},
593 {'name': 'BlockGeolocation', 'value': '1'}, 613 {'name': 'BlockGeolocation', 'value': 1},
594 {'name': 'AskGeolocation', 'value': '2'}, 614 {'name': 'AskGeolocation', 'value': 2},
595 ], 615 ],
596 'supported_on': ['chrome.*:10-'], 616 'supported_on': ['chrome.*:10-'],
597 'annotations': { 617 'annotations': {
598 'features': {'dynamic_refresh': 1}, 618 'features': {'dynamic_refresh': 1},
599 'example_value': 0, 619 'example_value': 0,
600 } 620 }
601 }, 621 },
602 ] 622 ]
603 }, 623 },
604 { 624 {
605 'name': 'Disable3DAPIs', 625 'name': 'Disable3DAPIs',
606 'type': 'main', 626 'type': 'main',
607 'supported_on': ['chrome.*:9-'], 627 'supported_on': ['chrome.*:9-'],
608 'annotations': { 628 'annotations': {
609 # It'll be difficult to support dynamically disabling access to these AP Is. 629 # It'll be difficult to support dynamically disabling access to these AP Is.
610 'features': {'dynamic_refresh': 0}, 630 'features': {'dynamic_refresh': 0},
611 'example_value': False, 631 'example_value': False,
612 } 632 }
613 }, 633 },
614 { 634 {
615 'name': 'ChromeFrameRendererSettings', 635 'name': 'ChromeFrameRendererSettings',
616 'type': 'group', 636 'type': 'group',
617 'policies': [{ 637 'policies': [{
618 'name': 'ChromeFrameRendererSettings', 638 'name': 'ChromeFrameRendererSettings',
619 'type': 'enum', 639 'type': 'int-enum',
620 'items': [ 640 'items': [
621 {'name': 'RenderInHost', 'value': '0'}, 641 {'name': 'RenderInHost', 'value': 0},
622 {'name': 'RenderInChromeFrame', 'value': '1'}, 642 {'name': 'RenderInChromeFrame', 'value': 1},
623 ], 643 ],
624 'supported_on': ['chrome_frame:8-'], 644 'supported_on': ['chrome_frame:8-'],
625 'annotations': { 645 'annotations': {
626 'features': {'dynamic_refresh': 0}, 646 'features': {'dynamic_refresh': 0},
627 'example_value': 1, 647 'example_value': 1,
628 } 648 }
629 }, { 649 }, {
630 'name': 'RenderInChromeFrameList', 650 'name': 'RenderInChromeFrameList',
631 'type': 'list', 651 'type': 'list',
632 'supported_on': ['chrome_frame:8-'], 652 'supported_on': ['chrome_frame:8-'],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 { 697 {
678 'key': '$4', 698 'key': '$4',
679 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started' 699 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started'
680 }, 700 },
681 { 701 {
682 'key': '$5', 702 'key': '$5',
683 'value': 'http://www.chromium.org/administrators/policy-templates' 703 'value': 'http://www.chromium.org/administrators/policy-templates'
684 }, 704 },
685 ] 705 ]
686 } 706 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698