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

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

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat 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
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..7a09ec626803c8fb2b53974c8d535b40891c45fc 100644
--- a/components/content_settings/core/common/content_settings_types.h
+++ b/components/content_settings/core/common/content_settings_types.h
@@ -49,6 +49,13 @@ enum ContentSettingsType {
CONTENT_SETTINGS_TYPE_IMPORTANT_SITE_INFO,
CONTENT_SETTINGS_TYPE_PERMISSION_AUTOBLOCKER_DATA,
CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER,
+ CONTENT_SETTINGS_TYPE_SENSORS,
+ 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 special-cased in the permissions layer to always allow, and as
// such doesn't have associated prefs data.
« no previous file with comments | « components/content_settings/core/common/content_settings.cc ('k') | components/infobars/core/infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698