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

Unified Diff: components/content_settings/core/common/content_settings_types.h

Issue 2789053002: [sensors][permission] Add/Register sensor permission types in content_settings.
Patch Set: Use WebsiteSettingsInfo::UNSYNCABLE Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/content_settings/core/browser/content_settings_registry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/content_settings/core/common/content_settings_types.h
diff --git a/components/content_settings/core/common/content_settings_types.h b/components/content_settings/core/common/content_settings_types.h
index d7584141be5b3c85efbc0a95535a443f41fa0b0b..74ee98386e4f0e3e6cb349145b5c584933f4bf04 100644
--- a/components/content_settings/core/common/content_settings_types.h
+++ b/components/content_settings/core/common/content_settings_types.h
@@ -54,6 +54,14 @@ enum ContentSettingsType {
// such doesn't have associated prefs data.
CONTENT_SETTINGS_TYPE_MIDI,
+ // Sensors Permissions.
+ CONTENT_SETTINGS_TYPE_AMBIENT_LIGHT_SENSOR,
+ CONTENT_SETTINGS_TYPE_MAGNETOMETER,
+ CONTENT_SETTINGS_TYPE_ORIENTATION_SENSOR,
+ // Auto grant. Always allow.
+ CONTENT_SETTINGS_TYPE_ACCELEROMETER,
+ CONTENT_SETTINGS_TYPE_GYROSCOPE,
+
// This is only here temporarily and will be removed when we further unify
// it with notifications, see crbug.com/563297. No prefs data is stored for
// this content type, we instead share values with NOTIFICATIONS.
« no previous file with comments | « components/content_settings/core/browser/content_settings_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698