OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ |
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "components/content_settings/core/common/content_settings_types.h" | 10 #include "components/content_settings/core/common/content_settings_types.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 QUOTA, | 29 QUOTA, |
30 DOWNLOAD, | 30 DOWNLOAD, |
31 MEDIA_STREAM, | 31 MEDIA_STREAM, |
32 REGISTER_PROTOCOL_HANDLER, | 32 REGISTER_PROTOCOL_HANDLER, |
33 PERMISSION_GEOLOCATION, | 33 PERMISSION_GEOLOCATION, |
34 PERMISSION_MIDI_SYSEX, | 34 PERMISSION_MIDI_SYSEX, |
35 PERMISSION_NOTIFICATIONS, | 35 PERMISSION_NOTIFICATIONS, |
36 PERMISSION_PROTECTED_MEDIA_IDENTIFIER, | 36 PERMISSION_PROTECTED_MEDIA_IDENTIFIER, |
37 PERMISSION_PUSH_MESSAGING, | 37 PERMISSION_PUSH_MESSAGING, |
38 PERMISSION_FLASH, | 38 PERMISSION_FLASH, |
| 39 PERMISSION_SENSORS, |
39 // NUM must be the last value in the enum. | 40 // NUM must be the last value in the enum. |
40 NUM | 41 NUM |
41 }; | 42 }; |
42 | 43 |
43 // Used for UMA to record whether a gesture was associated with the request. For | 44 // Used for UMA to record whether a gesture was associated with the request. For |
44 // simplicity not all request types track whether a gesture is associated with | 45 // simplicity not all request types track whether a gesture is associated with |
45 // it or not, for these types of requests metrics are not recorded. | 46 // it or not, for these types of requests metrics are not recorded. |
46 enum class PermissionRequestGestureType { | 47 enum class PermissionRequestGestureType { |
47 UNKNOWN, | 48 UNKNOWN, |
48 GESTURE, | 49 GESTURE, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool persist() const { return persist_; } | 123 bool persist() const { return persist_; } |
123 | 124 |
124 private: | 125 private: |
125 // Whether or not the response for this prompt should be persisted. | 126 // Whether or not the response for this prompt should be persisted. |
126 bool persist_; | 127 bool persist_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(PermissionRequest); | 129 DISALLOW_COPY_AND_ASSIGN(PermissionRequest); |
129 }; | 130 }; |
130 | 131 |
131 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ | 132 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_H_ |
OLD | NEW |