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

Side by Side Diff: components/content_settings/core/common/content_settings_types.h

Issue 2791623004: [sensors][permission] Add new permission types in permission module. (Closed)
Patch Set: Use 1 single permissionName SENSORS, add ContentSettings Created 3 years, 5 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, 68 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION,
69 69
70 // Website setting which stores engagement data for media related to a 70 // Website setting which stores engagement data for media related to a
71 // specific origin. 71 // specific origin.
72 CONTENT_SETTINGS_TYPE_MEDIA_ENGAGEMENT, 72 CONTENT_SETTINGS_TYPE_MEDIA_ENGAGEMENT,
73 73
74 // Website setting which stores whether or not the site can play audible 74 // Website setting which stores whether or not the site can play audible
75 // sound. This will not block playback but instead the user will not hear it. 75 // sound. This will not block playback but instead the user will not hear it.
76 CONTENT_SETTINGS_TYPE_SOUND, 76 CONTENT_SETTINGS_TYPE_SOUND,
77 77
78 // Generic Sensor API covering ambient-light-sensor, accelerometer, gyroscope
79 // and magnetometer are all mapped to a single content_settings_type.
raymes 2017/07/24 01:54:41 nit: // Setting for the Generic Sensor API coveri
riju_ 2017/07/24 07:19:34 Done.
80 CONTENT_SETTINGS_TYPE_SENSORS,
81
78 CONTENT_SETTINGS_NUM_TYPES, 82 CONTENT_SETTINGS_NUM_TYPES,
79 }; 83 };
80 84
81 struct ContentSettingsTypeHash { 85 struct ContentSettingsTypeHash {
82 std::size_t operator()(ContentSettingsType type) const { 86 std::size_t operator()(ContentSettingsType type) const {
83 return static_cast<std::size_t>(type); 87 return static_cast<std::size_t>(type);
84 } 88 }
85 }; 89 };
86 90
87 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ 91 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698