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

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 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 # 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 4286 matching lines...) Expand 10 before | Expand all | Expand 10 after
4297 'chrome.*:15-', 4297 'chrome.*:15-',
4298 'chrome_os:15-', 4298 'chrome_os:15-',
4299 'android:30-', 4299 'android:30-',
4300 'webview_android:47-', 4300 'webview_android:47-',
4301 'ios:34-47', 4301 'ios:34-47',
4302 ], 4302 ],
4303 'features': { 4303 'features': {
4304 'dynamic_refresh': True, 4304 'dynamic_refresh': True,
4305 'per_profile': True, 4305 'per_profile': True,
4306 }, 4306 },
4307 'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/ba d_path', 'https://server:8080/path', '.exact.hostname.com', 'file://*', '*'], 4307 'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/ba d_path', 'https://server:8080/path', '.exact.hostname.com', 'file://*', 'custom_ scheme:*', '*'],
4308 'id': 103, 4308 'id': 103,
4309 'caption': '''Block access to a list of URLs''', 4309 'caption': '''Block access to a list of URLs''',
4310 'tags': ['filtering'], 4310 'tags': ['filtering'],
4311 'desc': '''Blocks access to the listed URLs. 4311 'desc': '''Blocks access to the listed URLs.
4312 4312
4313 This policy prevents the user from loading web pages from blacklisted URLs . The blacklist provides a list of URL patterns that specify which URLs will be blacklisted. 4313 This policy prevents the user from loading web pages from blacklisted URLs . The blacklist provides a list of URL patterns that specify which URLs will be blacklisted.
4314 4314
4315 Each URL pattern can either be a pattern for local files or a generic URL pattern. Local file patterns are of the format 'file://path', where path should be an absolute path to block. All file system locations for which that path is a prefix will be blocked. 4315 A URL pattern has to be formatted according to https://www.chromium.org/ad ministrators/url-blacklist-filter-format.
4316
4317 A generic URL pattern has the format 'scheme://host:port/path'.
4318 If present, only the specified scheme will be blocked. If the scheme:// pr efix is not specified, all schemes are blocked.
4319 The host is required and can be a hostname or an IP address. Subdomains of a hostname will also be blocked. To prevent blocking subdomains, include a '.' before the hostname. The special hostname '*' will block all domains.
4320 The optional port is a valid port number from 1 to 65535. If none is speci fied, all ports are blocked.
4321 If the optional path is specified, only paths with that prefix will be blo cked.
4322 4316
4323 Exceptions can be defined in the URL whitelist policy. These policies are limited to 1000 entries; subsequent entries will be ignored. 4317 Exceptions can be defined in the URL whitelist policy. These policies are limited to 1000 entries; subsequent entries will be ignored.
4324 4318
4325 Note that it is not recommended to block internal 'chrome://*' URLs since this may lead to unexpected errors. 4319 Note that it is not recommended to block internal 'chrome://*' URLs since this may lead to unexpected errors.
4326 4320
4327 If this policy is not set no URL will be blacklisted in the browser.''', 4321 If this policy is not set no URL will be blacklisted in the browser.''',
4328 }, 4322 },
4329 { 4323 {
4330 'name': 'URLWhitelist', 4324 'name': 'URLWhitelist',
4331 'type': 'list', 4325 'type': 'list',
(...skipping 4341 matching lines...) Expand 10 before | Expand all | Expand 10 after
8673 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8667 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8674 'text': 'Default Settings (users can override)', 8668 'text': 'Default Settings (users can override)',
8675 }, 8669 },
8676 'doc_complex_policies_on_windows': { 8670 'doc_complex_policies_on_windows': {
8677 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8671 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8678 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 8672 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
8679 }, 8673 },
8680 }, 8674 },
8681 'placeholders': [], 8675 'placeholders': [],
8682 } 8676 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698