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 18 matching lines...) Expand all Loading... | |
29 | 29 |
30 // The action the user took. Required. | 30 // The action the user took. Required. |
31 optional Action action = 5; | 31 optional Action action = 5; |
32 | 32 |
33 // The UI used to complete the action. | 33 // The UI used to complete the action. |
34 optional SourceUI source_ui = 6; | 34 optional SourceUI source_ui = 6; |
35 | 35 |
36 // The relevant field trials enabled for this report. | 36 // The relevant field trials enabled for this report. |
37 repeated FieldTrial field_trials = 7; | 37 repeated FieldTrial field_trials = 7; |
38 | 38 |
39 // The number of dismissal on a prompt for this origin prior to this report. | |
dominickn
2016/08/15 04:37:11
Nit: dismissal -> dismissals
Nit: "for this origi
kcarattini
2016/08/15 07:02:25
Done.
| |
40 optional int32 num_prior_dismissals = 8; | |
41 | |
42 // The number of ignores of a prompt for this origin prior to this report. | |
43 optional int32 num_prior_ignores = 9; | |
44 | |
45 // The persistance decision on a prompt. Only some experimental prompts will | |
dominickn
2016/08/15 04:37:11
Nit: "persistance" -> "persistence"
kcarattini
2016/08/15 07:02:25
Done.
| |
46 // have this field set. | |
47 optional PersistDecision persisted = 10; | |
48 | |
39 // Platform | 49 // Platform |
40 enum PlatformType { | 50 enum PlatformType { |
41 PLATFORM_TYPE_UNSPECIFIED = 0; | 51 PLATFORM_TYPE_UNSPECIFIED = 0; |
42 DESKTOP_PLATFORM = 1; | 52 DESKTOP_PLATFORM = 1; |
43 ANDROID_PLATFORM = 2; | 53 ANDROID_PLATFORM = 2; |
44 } | 54 } |
45 | 55 |
46 // Whether the action occurred after a user gesture. | 56 // Whether the action occurred after a user gesture. |
47 enum GestureType { | 57 enum GestureType { |
48 GESTURE_TYPE_UNSPECIFIED = 0; | 58 GESTURE_TYPE_UNSPECIFIED = 0; |
49 GESTURE = 1; | 59 GESTURE = 1; |
50 NO_GESTURE = 2; | 60 NO_GESTURE = 2; |
51 } | 61 } |
52 | 62 |
53 // User Permission Actions. This enum is intentionally different with | 63 // User Permission Actions. This enum is intentionally different from |
54 // the one in src/chrome/browser/permissions/permission_uma_util.h | 64 // the one in src/chrome/browser/permissions/permission_uma_util.h |
55 enum Action { | 65 enum Action { |
56 ACTION_UNSPECIFIED = 0; | 66 ACTION_UNSPECIFIED = 0; |
57 GRANTED = 1; | 67 GRANTED = 1; |
58 DENIED = 2; | 68 DENIED = 2; |
59 DISMISSED = 3; | 69 DISMISSED = 3; |
60 IGNORED = 4; | 70 IGNORED = 4; |
61 REVOKED = 5; | 71 REVOKED = 5; |
62 } | 72 } |
63 | 73 |
(...skipping 14 matching lines...) Expand all Loading... | |
78 PUSH_MESSAGING = 2; | 88 PUSH_MESSAGING = 2; |
79 NOTIFICATIONS = 3; | 89 NOTIFICATIONS = 3; |
80 GEOLOCATION = 4; | 90 GEOLOCATION = 4; |
81 PROTECTED_MEDIA_IDENTIFIER = 5; | 91 PROTECTED_MEDIA_IDENTIFIER = 5; |
82 MIDI = 6; | 92 MIDI = 6; |
83 DURABLE_STORAGE = 7; | 93 DURABLE_STORAGE = 7; |
84 AUDIO_CAPTURE = 8; | 94 AUDIO_CAPTURE = 8; |
85 VIDEO_CAPTURE = 9; | 95 VIDEO_CAPTURE = 9; |
86 } | 96 } |
87 | 97 |
98 // Whether the decision on a prompt was persisted. | |
99 enum PersistDecision { | |
100 PERSIST_DECISION_UNSPECIFIED = 0; | |
101 PERSISTED = 1; | |
102 NOT_PERSISTED = 2; | |
103 } | |
104 | |
88 // Description of a field trial or experiment that the user is currently | 105 // Description of a field trial or experiment that the user is currently |
89 // enrolled in. All metrics reported in this upload can potentially be | 106 // enrolled in. All metrics reported in this upload can potentially be |
90 // influenced by the field trial. | 107 // influenced by the field trial. |
91 message FieldTrial { | 108 message FieldTrial { |
92 // The name of the field trial, as a 32-bit identifier. Currently, the | 109 // The name of the field trial, as a 32-bit identifier. Currently, the |
93 // identifier is a hash of the field trial's name. | 110 // identifier is a hash of the field trial's name. |
94 optional fixed32 name_id = 1; | 111 optional fixed32 name_id = 1; |
95 | 112 |
96 // The user's group within the field trial, as a 32-bit identifier. | 113 // The user's group within the field trial, as a 32-bit identifier. |
97 // Currently, the identifier is a hash of the group's name. | 114 // Currently, the identifier is a hash of the group's name. |
98 optional fixed32 group_id = 2; | 115 optional fixed32 group_id = 2; |
99 } | 116 } |
100 } | 117 } |
OLD | NEW |