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

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: check final diff 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 } 530 }
511 }, 531 },
512 ] 532 ]
513 }, 533 },
514 { 534 {
515 'name': 'ContentSettings', 535 'name': 'ContentSettings',
516 'type': 'group', 536 'type': 'group',
517 'policies': [ 537 'policies': [
518 { 538 {
519 'name': 'DefaultCookiesSetting', 539 'name': 'DefaultCookiesSetting',
520 'type': 'enum', 540 'type': 'int-enum',
521 'items': [ 541 'items': [
522 {'name': 'AllowCookies', 'value': '0'}, 542 {'name': 'AllowCookies', 'value': 0},
523 {'name': 'BlockCookies', 'value': '1'}, 543 {'name': 'BlockCookies', 'value': 1},
524 ], 544 ],
525 'supported_on': ['chrome.*:10-'], 545 'supported_on': ['chrome.*:10-'],
526 'annotations': { 546 'annotations': {
527 'features': {'dynamic_refresh': 1}, 547 'features': {'dynamic_refresh': 1},
528 'example_value': 0, 548 'example_value': 0,
529 } 549 }
530 }, 550 },
531 { 551 {
532 'name': 'DefaultImagesSetting', 552 'name': 'DefaultImagesSetting',
533 'type': 'enum', 553 'type': 'int-enum',
534 'items': [ 554 'items': [
535 {'name': 'AllowImages', 'value': '0'}, 555 {'name': 'AllowImages', 'value': 0},
536 {'name': 'BlockImages', 'value': '1'}, 556 {'name': 'BlockImages', 'value': 1},
537 ], 557 ],
538 'supported_on': ['chrome.*:10-'], 558 'supported_on': ['chrome.*:10-'],
539 'annotations': { 559 'annotations': {
540 'features': {'dynamic_refresh': 1}, 560 'features': {'dynamic_refresh': 1},
541 'example_value': 0, 561 'example_value': 0,
542 } 562 }
543 }, 563 },
544 { 564 {
545 'name': 'DefaultJavaScriptSetting', 565 'name': 'DefaultJavaScriptSetting',
546 'type': 'enum', 566 'type': 'int-enum',
547 'items': [ 567 'items': [
548 {'name': 'AllowJavaScript', 'value': '0'}, 568 {'name': 'AllowJavaScript', 'value': 0},
549 {'name': 'BlockJavaScript', 'value': '1'}, 569 {'name': 'BlockJavaScript', 'value': 1},
550 ], 570 ],
551 'supported_on': ['chrome.*:10-'], 571 'supported_on': ['chrome.*:10-'],
552 'annotations': { 572 'annotations': {
553 'features': {'dynamic_refresh': 1}, 573 'features': {'dynamic_refresh': 1},
554 'example_value': 0, 574 'example_value': 0,
555 } 575 }
556 }, 576 },
557 { 577 {
558 'name': 'DefaultPluginsSetting', 578 'name': 'DefaultPluginsSetting',
559 'type': 'enum', 579 'type': 'int-enum',
560 'items': [ 580 'items': [
561 {'name': 'AllowPlugins', 'value': '0'}, 581 {'name': 'AllowPlugins', 'value': 0},
562 {'name': 'BlockPlugins', 'value': '1'}, 582 {'name': 'BlockPlugins', 'value': 1},
563 ], 583 ],
564 'supported_on': ['chrome.*:10-'], 584 'supported_on': ['chrome.*:10-'],
565 'annotations': { 585 'annotations': {
566 'features': {'dynamic_refresh': 1}, 586 'features': {'dynamic_refresh': 1},
567 'example_value': 0, 587 'example_value': 0,
568 } 588 }
569 }, 589 },
570 { 590 {
571 'name': 'DefaultPopupsSetting', 591 'name': 'DefaultPopupsSetting',
572 'type': 'enum', 592 'type': 'int-enum',
573 'items': [ 593 'items': [
574 {'name': 'AllowPopups', 'value': '0'}, 594 {'name': 'AllowPopups', 'value': 0},
575 {'name': 'BlockPopups', 'value': '1'}, 595 {'name': 'BlockPopups', 'value': 1},
576 ], 596 ],
577 'supported_on': ['chrome.*:10-'], 597 'supported_on': ['chrome.*:10-'],
578 'annotations': { 598 'annotations': {
579 'features': {'dynamic_refresh': 1}, 599 'features': {'dynamic_refresh': 1},
580 'example_value': 1, 600 'example_value': 1,
581 } 601 }
582 }, 602 },
583 { 603 {
584 'name': 'DefaultNotificationSetting', 604 'name': 'DefaultNotificationSetting',
585 'type': 'enum', 605 'type': 'int-enum',
586 'items': [ 606 'items': [
587 {'name': 'AllowNotifications', 'value': '0'}, 607 {'name': 'AllowNotifications', 'value': 0},
588 {'name': 'BlockNotifications', 'value': '1'}, 608 {'name': 'BlockNotifications', 'value': 1},
589 {'name': 'AskNotifications', 'value': '2'}, 609 {'name': 'AskNotifications', 'value': 2},
590 ], 610 ],
591 'supported_on': ['chrome.*:10-'], 611 'supported_on': ['chrome.*:10-'],
592 'annotations': { 612 'annotations': {
593 'features': {'dynamic_refresh': 1}, 613 'features': {'dynamic_refresh': 1},
594 'example_value': 2, 614 'example_value': 2,
595 } 615 }
596 }, 616 },
597 { 617 {
598 'name': 'DefaultGeolocationSetting', 618 'name': 'DefaultGeolocationSetting',
599 'type': 'enum', 619 'type': 'int-enum',
600 'items': [ 620 'items': [
601 {'name': 'AllowGeolocation', 'value': '0'}, 621 {'name': 'AllowGeolocation', 'value': 0},
602 {'name': 'BlockGeolocation', 'value': '1'}, 622 {'name': 'BlockGeolocation', 'value': 1},
603 {'name': 'AskGeolocation', 'value': '2'}, 623 {'name': 'AskGeolocation', 'value': 2},
604 ], 624 ],
605 'supported_on': ['chrome.*:10-'], 625 'supported_on': ['chrome.*:10-'],
606 'annotations': { 626 'annotations': {
607 'features': {'dynamic_refresh': 1}, 627 'features': {'dynamic_refresh': 1},
608 'example_value': 0, 628 'example_value': 0,
609 } 629 }
610 }, 630 },
611 ] 631 ]
612 }, 632 },
613 { 633 {
614 'name': 'Disable3DAPIs', 634 'name': 'Disable3DAPIs',
615 'type': 'main', 635 'type': 'main',
616 'supported_on': ['chrome.*:9-'], 636 'supported_on': ['chrome.*:9-'],
617 'annotations': { 637 'annotations': {
618 # It'll be difficult to support dynamically disabling access to these AP Is. 638 # It'll be difficult to support dynamically disabling access to these AP Is.
619 'features': {'dynamic_refresh': 0}, 639 'features': {'dynamic_refresh': 0},
620 'example_value': False, 640 'example_value': False,
621 } 641 }
622 }, 642 },
623 { 643 {
624 'name': 'ChromeFrameRendererSettings', 644 'name': 'ChromeFrameRendererSettings',
625 'type': 'group', 645 'type': 'group',
626 'policies': [{ 646 'policies': [{
627 'name': 'ChromeFrameRendererSettings', 647 'name': 'ChromeFrameRendererSettings',
628 'type': 'enum', 648 'type': 'int-enum',
629 'items': [ 649 'items': [
630 {'name': 'RenderInHost', 'value': '0'}, 650 {'name': 'RenderInHost', 'value': 0},
631 {'name': 'RenderInChromeFrame', 'value': '1'}, 651 {'name': 'RenderInChromeFrame', 'value': 1},
632 ], 652 ],
633 'supported_on': ['chrome_frame:8-'], 653 'supported_on': ['chrome_frame:8-'],
634 'annotations': { 654 'annotations': {
635 'features': {'dynamic_refresh': 0}, 655 'features': {'dynamic_refresh': 0},
636 'example_value': 1, 656 'example_value': 1,
637 } 657 }
638 }, { 658 }, {
639 'name': 'RenderInChromeFrameList', 659 'name': 'RenderInChromeFrameList',
640 'type': 'list', 660 'type': 'list',
641 'supported_on': ['chrome_frame:8-'], 661 'supported_on': ['chrome_frame:8-'],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 { 706 {
687 'key': '$4', 707 'key': '$4',
688 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started' 708 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started'
689 }, 709 },
690 { 710 {
691 'key': '$5', 711 'key': '$5',
692 'value': 'http://www.chromium.org/administrators/policy-templates' 712 'value': 'http://www.chromium.org/administrators/policy-templates'
693 }, 713 },
694 ] 714 ]
695 } 715 }
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.grd ('k') | chrome/browser/policy/config_dir_policy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698