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

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

Issue 15738004: Add a policy list for access to capture devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests and improve documentation Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_devices_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # templates and documentation. The policy definition list that Chrome sees 105 # templates and documentation. The policy definition list that Chrome sees
106 # will include policies marked with 'future'. If a WIP policy isn't meant to 106 # will include policies marked with 'future'. If a WIP policy isn't meant to
107 # be seen by the policy providers either, the 'supported_on' key should be set 107 # be seen by the policy providers either, the 'supported_on' key should be set
108 # to an empty list. 108 # to an empty list.
109 # 109 #
110 # IDs: 110 # IDs:
111 # Since a Protocol Buffer definition is generated from this file, unique and 111 # Since a Protocol Buffer definition is generated from this file, unique and
112 # persistent IDs for all fields (but not for groups!) are needed. These are 112 # persistent IDs for all fields (but not for groups!) are needed. These are
113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
114 # because doing so would break the deployed wire format! 114 # because doing so would break the deployed wire format!
115 # For your editing convenience: highest ID currently used: 207 115 # For your editing convenience: highest ID currently used: 209
116 # 116 #
117 # Placeholders: 117 # Placeholders:
118 # The following placeholder strings are automatically substituted: 118 # The following placeholder strings are automatically substituted:
119 # $1 -> Google Chrome / Chromium 119 # $1 -> Google Chrome / Chromium
120 # $2 -> Google Chrome OS / Chromium OS 120 # $2 -> Google Chrome OS / Chromium OS
121 # $3 -> Google Chrome Frame / Chromium Frame 121 # $3 -> Google Chrome Frame / Chromium Frame
122 # $6 is reserved for doc_writer 122 # $6 is reserved for doc_writer
123 # 123 #
124 # Device Policy: 124 # Device Policy:
125 # An additional flag device_only (optional, defaults to False) indicates 125 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 3660 matching lines...) Expand 10 before | Expand all | Expand 10 after
3786 3786
3787 If this setting is set to true or not configured then users can use all su pported audio outputs on their device.''', 3787 If this setting is set to true or not configured then users can use all su pported audio outputs on their device.''',
3788 }, 3788 },
3789 { 3789 {
3790 'name': 'AudioCaptureAllowed', 3790 'name': 'AudioCaptureAllowed',
3791 'type': 'main', 3791 'type': 'main',
3792 'schema': { 'type': 'boolean' }, 3792 'schema': { 'type': 'boolean' },
3793 'supported_on': ['chrome.*:25-', 'chrome_os:0.23-'], 3793 'supported_on': ['chrome.*:25-', 'chrome_os:0.23-'],
3794 'features': { 3794 'features': {
3795 'dynamic_refresh': True, 3795 'dynamic_refresh': True,
3796 'per_profile': False, 3796 'per_profile': False,
pastarmovj 2013/05/23 08:33:12 This is actually both per profile and global polic
tommi (sloooow) - chröme 2013/05/23 12:12:17 Done.
3797 }, 3797 },
3798 'example_value': False, 3798 'example_value': False,
3799 'id': 160, 3799 'id': 160,
3800 'caption': '''Allow or deny audio capture''', 3800 'caption': '''Allow or deny audio capture''',
3801 'desc': '''Allow or deny audio capture. 3801 'desc': '''Allow or deny audio capture.
3802 3802
3803 When this policy is disabled, audio capture will not be available. If ena bled, audio capture will always be allowed. 3803 If enabled or not configured (default), the user will be prompted for
3804 If the policy is not configured (default), the user will be prompted for a udio capture device access. 3804 audio capture access except for URLs configured in the
3805 AudioCaptureAllowedUrls list which will be granted access without promptin g.
3806
3807 When this policy is disabled, the user will never be prompted and audio
3808 capture only be available to URLs configured in AudioCaptureAllowedUrls.
3805 3809
3806 This policy affects all types of audio inputs and not only the built-in mi crophone.''', 3810 This policy affects all types of audio inputs and not only the built-in mi crophone.''',
3807 }, 3811 },
3808 { 3812 {
3813 'name': 'AudioCaptureAllowedUrls',
3814 'type': 'list',
3815 'schema': {
3816 'type': 'array',
3817 'items': { 'type': 'string' },
3818 },
3819 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-'],
3820 'features': {
3821 'dynamic_refresh': True,
3822 'per_profile': False,
pastarmovj 2013/05/23 08:33:12 This is actually a per profile policy. Please chan
tommi (sloooow) - chröme 2013/05/23 12:12:17 Done.
3823 },
3824 'example_value': ['http://www.example.com/', 'http://*.example.edu/'],
3825 'id': 208,
3826 'caption': '''URLs that will be granted access to audio capture devices wi thout prompt.''',
3827 'desc': '''Patterns in this list will be matched against the security
3828 origin of the requesting URL. If a match is found, access to audio
3829 capture devices will be granted without prompt.''',
3830 },
3831 {
3809 'name': 'VideoCaptureAllowed', 3832 'name': 'VideoCaptureAllowed',
3810 'type': 'main', 3833 'type': 'main',
3811 'schema': { 'type': 'boolean' }, 3834 'schema': { 'type': 'boolean' },
3812 'supported_on': ['chrome.*:25-', 'chrome_os:0.25-'], 3835 'supported_on': ['chrome.*:25-', 'chrome_os:0.25-'],
3813 'features': { 3836 'features': {
3814 'dynamic_refresh': True, 3837 'dynamic_refresh': True,
3815 'per_profile': False, 3838 'per_profile': False,
pastarmovj 2013/05/23 08:33:12 This is actually a per profile policy. Please chan
tommi (sloooow) - chröme 2013/05/23 12:12:17 Done.
3816 }, 3839 },
3817 'example_value': False, 3840 'example_value': False,
3818 'id': 167, 3841 'id': 167,
3819 'caption': '''Allow or deny video capture''', 3842 'caption': '''Allow or deny video capture''',
3820 'desc': '''Allow or deny video capture. 3843 'desc': '''Allow or deny video capture.
3821 3844
3822 When this policy is disabled, video capture devices will not be available. If enabled, video capture will always be allowed. 3845 If enabled or not configured (default), the user will be prompted for
3823 If the policy is not configured (default), the user will be prompted for v ideo device access. 3846 video capture access except for URLs configured in the
3847 VideoCaptureAllowedUrls list which will be granted access without promptin g.
3848
3849 When this policy is disabled, the user will never be prompted and video
3850 capture only be available to URLs configured in VideoCaptureAllowedUrls.
3824 3851
3825 This policy affects all types of video inputs and not only the built-in ca mera.''', 3852 This policy affects all types of video inputs and not only the built-in ca mera.''',
3826 }, 3853 },
3827 { 3854 {
3855 'name': 'VideoCaptureAllowedUrls',
3856 'type': 'list',
3857 'schema': {
3858 'type': 'array',
3859 'items': { 'type': 'string' },
3860 },
3861 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-'],
3862 'features': {
3863 'dynamic_refresh': True,
3864 'per_profile': False,
pastarmovj 2013/05/23 08:33:12 This is actually a per profile policy. Please chan
tommi (sloooow) - chröme 2013/05/23 12:12:17 Done.
3865 },
3866 'example_value': ['http://www.example.com/', 'http://*.example.edu/'],
3867 'id': 209,
3868 'caption': '''URLs that will be granted access to video capture devices wi thout prompt.''',
3869 'desc': '''Patterns in this list will be matched against the security
3870 origin of the requesting URL. If a match is found, access to audio
3871 capture devices will be granted without prompt.''',
3872 },
3873 {
3828 'name': 'DisableScreenshots', 3874 'name': 'DisableScreenshots',
3829 'type': 'main', 3875 'type': 'main',
3830 'schema': { 'type': 'boolean' }, 3876 'schema': { 'type': 'boolean' },
3831 'supported_on': ['chrome_os:22-', 'chrome.*:22-'], 3877 'supported_on': ['chrome_os:22-', 'chrome.*:22-'],
3832 'features': { 3878 'features': {
3833 'dynamic_refresh': True, 3879 'dynamic_refresh': True,
3834 'per_profile': False, 3880 'per_profile': False,
3835 }, 3881 },
3836 'example_value': True, 3882 'example_value': True,
3837 'id': 153, 3883 'id': 153,
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
4812 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 4858 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
4813 'text': 'deprecated', 4859 'text': 'deprecated',
4814 }, 4860 },
4815 'doc_recommended': { 4861 'doc_recommended': {
4816 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 4862 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
4817 'text': 'Default Settings (users can override)', 4863 'text': 'Default Settings (users can override)',
4818 }, 4864 },
4819 }, 4865 },
4820 'placeholders': [], 4866 'placeholders': [],
4821 } 4867 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_devices_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698