OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Protocol buffer for permission reports sent to the Safe Browsing client-side | 5 // Protocol buffer for permission reports sent to the Safe Browsing client-side |
6 // detection (CSD) frontends. This should stay in sync with the Safe Browsing | 6 // detection (CSD) frontends. This should stay in sync with the Safe Browsing |
7 // server-side protocol buffer. | 7 // server-side protocol buffer. |
8 | 8 |
9 syntax = "proto2"; | 9 syntax = "proto2"; |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 UNKNOWN_PERMISSION = 0; | 88 UNKNOWN_PERMISSION = 0; |
89 MIDI_SYSEX = 1; | 89 MIDI_SYSEX = 1; |
90 PUSH_MESSAGING = 2; | 90 PUSH_MESSAGING = 2; |
91 NOTIFICATIONS = 3; | 91 NOTIFICATIONS = 3; |
92 GEOLOCATION = 4; | 92 GEOLOCATION = 4; |
93 PROTECTED_MEDIA_IDENTIFIER = 5; | 93 PROTECTED_MEDIA_IDENTIFIER = 5; |
94 MIDI = 6; | 94 MIDI = 6; |
95 DURABLE_STORAGE = 7; | 95 DURABLE_STORAGE = 7; |
96 AUDIO_CAPTURE = 8; | 96 AUDIO_CAPTURE = 8; |
97 VIDEO_CAPTURE = 9; | 97 VIDEO_CAPTURE = 9; |
| 98 BACKGROUND_SYNC = 10; |
| 99 PLUGINS = 11; |
98 } | 100 } |
99 | 101 |
100 // Whether the decision on a prompt was persisted. | 102 // Whether the decision on a prompt was persisted. |
101 enum PersistDecision { | 103 enum PersistDecision { |
102 PERSIST_DECISION_UNSPECIFIED = 0; | 104 PERSIST_DECISION_UNSPECIFIED = 0; |
103 PERSISTED = 1; | 105 PERSISTED = 1; |
104 NOT_PERSISTED = 2; | 106 NOT_PERSISTED = 2; |
105 } | 107 } |
106 | 108 |
107 // Description of a field trial or experiment that the user is currently | 109 // Description of a field trial or experiment that the user is currently |
108 // enrolled in. All metrics reported in this upload can potentially be | 110 // enrolled in. All metrics reported in this upload can potentially be |
109 // influenced by the field trial. | 111 // influenced by the field trial. |
110 message FieldTrial { | 112 message FieldTrial { |
111 // The name of the field trial, as a 32-bit identifier. Currently, the | 113 // The name of the field trial, as a 32-bit identifier. Currently, the |
112 // identifier is a hash of the field trial's name. | 114 // identifier is a hash of the field trial's name. |
113 optional fixed32 name_id = 1; | 115 optional fixed32 name_id = 1; |
114 | 116 |
115 // The user's group within the field trial, as a 32-bit identifier. | 117 // The user's group within the field trial, as a 32-bit identifier. |
116 // Currently, the identifier is a hash of the group's name. | 118 // Currently, the identifier is a hash of the group's name. |
117 optional fixed32 group_id = 2; | 119 optional fixed32 group_id = 2; |
118 } | 120 } |
119 } | 121 } |
OLD | NEW |