OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 | 8 |
9 namespace prefs { | 9 namespace prefs { |
10 | 10 |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 const char kPinnedTabs[] = "pinned_tabs"; | 928 const char kPinnedTabs[] = "pinned_tabs"; |
929 #endif | 929 #endif |
930 | 930 |
931 // Integer containing the default Geolocation content setting. | 931 // Integer containing the default Geolocation content setting. |
932 const char kGeolocationDefaultContentSetting[] = | 932 const char kGeolocationDefaultContentSetting[] = |
933 "geolocation.default_content_setting"; | 933 "geolocation.default_content_setting"; |
934 | 934 |
935 // Dictionary that maps [frame, toplevel] to their Geolocation content setting. | 935 // Dictionary that maps [frame, toplevel] to their Geolocation content setting. |
936 const char kGeolocationContentSettings[] = "geolocation.content_settings"; | 936 const char kGeolocationContentSettings[] = "geolocation.content_settings"; |
937 | 937 |
| 938 |
| 939 // A whitelist of Dictionary that maps [origin, device] to give websites access |
| 940 // to the microphones. |
| 941 const char kMediaStreamAudioDevicesWhitelist[] = |
| 942 "media_stream.audio_devices_whitelist"; |
| 943 |
| 944 // A whitelist of Dictionary that maps [origin, device] to give websites access |
| 945 // to the cameras. |
| 946 const char kMediaStreamVideoDevicesWhitelist[] = |
| 947 "media_stream.video_devices_whitelist"; |
| 948 |
938 // Preference to disable 3D APIs (WebGL, Pepper 3D). | 949 // Preference to disable 3D APIs (WebGL, Pepper 3D). |
939 const char kDisable3DAPIs[] = "disable_3d_apis"; | 950 const char kDisable3DAPIs[] = "disable_3d_apis"; |
940 | 951 |
941 // Whether to enable hyperlink auditing ("<a ping>"). | 952 // Whether to enable hyperlink auditing ("<a ping>"). |
942 const char kEnableHyperlinkAuditing[] = "enable_a_ping"; | 953 const char kEnableHyperlinkAuditing[] = "enable_a_ping"; |
943 | 954 |
944 // Whether to enable sending referrers. | 955 // Whether to enable sending referrers. |
945 const char kEnableReferrers[] = "enable_referrers"; | 956 const char kEnableReferrers[] = "enable_referrers"; |
946 | 957 |
947 // Boolean to enable reporting memory info to page. | 958 // Boolean to enable reporting memory info to page. |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 const char kManagedDefaultJavaScriptSetting[] = | 1815 const char kManagedDefaultJavaScriptSetting[] = |
1805 "profile.managed_default_content_settings.javascript"; | 1816 "profile.managed_default_content_settings.javascript"; |
1806 const char kManagedDefaultPluginsSetting[] = | 1817 const char kManagedDefaultPluginsSetting[] = |
1807 "profile.managed_default_content_settings.plugins"; | 1818 "profile.managed_default_content_settings.plugins"; |
1808 const char kManagedDefaultPopupsSetting[] = | 1819 const char kManagedDefaultPopupsSetting[] = |
1809 "profile.managed_default_content_settings.popups"; | 1820 "profile.managed_default_content_settings.popups"; |
1810 const char kManagedDefaultGeolocationSetting[] = | 1821 const char kManagedDefaultGeolocationSetting[] = |
1811 "profile.managed_default_content_settings.geolocation"; | 1822 "profile.managed_default_content_settings.geolocation"; |
1812 const char kManagedDefaultNotificationsSetting[] = | 1823 const char kManagedDefaultNotificationsSetting[] = |
1813 "profile.managed_default_content_settings.notifications"; | 1824 "profile.managed_default_content_settings.notifications"; |
| 1825 const char kManagedDefaultMediaStreamSetting[] = |
| 1826 "mediastream.default_content_settings"; |
1814 | 1827 |
1815 // Preferences that are exclusively used to store managed | 1828 // Preferences that are exclusively used to store managed |
1816 // content settings patterns. | 1829 // content settings patterns. |
1817 const char kManagedCookiesAllowedForUrls[] = | 1830 const char kManagedCookiesAllowedForUrls[] = |
1818 "profile.managed_cookies_allowed_for_urls"; | 1831 "profile.managed_cookies_allowed_for_urls"; |
1819 const char kManagedCookiesBlockedForUrls[] = | 1832 const char kManagedCookiesBlockedForUrls[] = |
1820 "profile.managed_cookies_blocked_for_urls"; | 1833 "profile.managed_cookies_blocked_for_urls"; |
1821 const char kManagedCookiesSessionOnlyForUrls[] = | 1834 const char kManagedCookiesSessionOnlyForUrls[] = |
1822 "profile.managed_cookies_sessiononly_for_urls"; | 1835 "profile.managed_cookies_sessiononly_for_urls"; |
1823 const char kManagedImagesAllowedForUrls[] = | 1836 const char kManagedImagesAllowedForUrls[] = |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 const char kInManagedMode[] = "managed_mode"; | 1945 const char kInManagedMode[] = "managed_mode"; |
1933 | 1946 |
1934 // Counts how many more times the 'profile on a network share' warning should be | 1947 // Counts how many more times the 'profile on a network share' warning should be |
1935 // shown to the user before the next silence period. | 1948 // shown to the user before the next silence period. |
1936 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; | 1949 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; |
1937 // Tracks the time of the last shown warning. Used to reset | 1950 // Tracks the time of the last shown warning. Used to reset |
1938 // |network_profile.warnings_left| after a silence period. | 1951 // |network_profile.warnings_left| after a silence period. |
1939 const char kNetworkProfileLastWarningTime[] = | 1952 const char kNetworkProfileLastWarningTime[] = |
1940 "network_profile.last_warning_time"; | 1953 "network_profile.last_warning_time"; |
1941 } // namespace prefs | 1954 } // namespace prefs |
OLD | NEW |