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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // Various request triggers we want to record, e.g. on page load. | 46 // Various request triggers we want to record, e.g. on page load. |
47 enum RequestTrigger { | 47 enum RequestTrigger { |
48 REQUEST_TRIGGER_UNSPECIFIED = 0; | 48 REQUEST_TRIGGER_UNSPECIFIED = 0; |
49 ONLOAD = 1; | 49 ONLOAD = 1; |
50 AFTER_GESTURE = 2; | 50 AFTER_GESTURE = 2; |
51 } | 51 } |
52 | 52 |
53 // User Permission Actions. This enum is intentionally different with | 53 // User Permission Actions. This enum is intentionally different with |
54 // the one in src/chrome/browser/permissions/permission_uma_util.h | 54 // the one in src/chrome/browser/permissions/permission_uma_util.h |
55 enum Action { | 55 enum Action { |
56 // TODO(stefanocs): Add ACTION_UNSPECIFIED to the corresponding Safe | |
57 // Browsing logs proto. | |
58 ACTION_UNSPECIFIED = 0; | 56 ACTION_UNSPECIFIED = 0; |
59 GRANTED = 1; | 57 GRANTED = 1; |
60 DENIED = 2; | 58 DENIED = 2; |
61 DISMISSED = 3; | 59 DISMISSED = 3; |
62 IGNORED = 4; | 60 IGNORED = 4; |
63 REVOKED = 5; | 61 REVOKED = 5; |
64 } | 62 } |
65 | 63 |
66 // Places in the UI that a permission change can occur. | 64 // Places in the UI that a permission change can occur. |
67 enum SourceUI { | 65 enum SourceUI { |
68 SOURCE_UI_UNSPECIFIED = 0; | 66 SOURCE_UI_UNSPECIFIED = 0; |
69 PROMPT = 1; | 67 PROMPT = 1; |
70 OIB = 2; | 68 OIB = 2; |
71 // TODO(stefanocs): Remove CONTENT_SETTINGS from the corresponding Safe | |
72 // Browsing logs proto. | |
73 SITE_SETTINGS = 3; | 69 SITE_SETTINGS = 3; |
| 70 PAGE_ACTION = 4; |
74 } | 71 } |
75 | 72 |
76 // The various types of permissions. This should stay in sync with the | 73 // The various types of permissions. This should stay in sync with the |
77 // corresponding Safe Browsing logs enum. | 74 // corresponding Safe Browsing logs enum. |
78 enum PermissionType { | 75 enum PermissionType { |
79 UNKNOWN_PERMISSION = 0; | 76 UNKNOWN_PERMISSION = 0; |
80 MIDI_SYSEX = 1; | 77 MIDI_SYSEX = 1; |
81 PUSH_MESSAGING = 2; | 78 PUSH_MESSAGING = 2; |
82 NOTIFICATIONS = 3; | 79 NOTIFICATIONS = 3; |
83 GEOLOCATION = 4; | 80 GEOLOCATION = 4; |
(...skipping 10 matching lines...) Expand all Loading... |
94 message FieldTrial { | 91 message FieldTrial { |
95 // The name of the field trial, as a 32-bit identifier. Currently, the | 92 // The name of the field trial, as a 32-bit identifier. Currently, the |
96 // identifier is a hash of the field trial's name. | 93 // identifier is a hash of the field trial's name. |
97 optional fixed32 name_id = 1; | 94 optional fixed32 name_id = 1; |
98 | 95 |
99 // The user's group within the field trial, as a 32-bit identifier. | 96 // The user's group within the field trial, as a 32-bit identifier. |
100 // Currently, the identifier is a hash of the group's name. | 97 // Currently, the identifier is a hash of the group's name. |
101 optional fixed32 group_id = 2; | 98 optional fixed32 group_id = 2; |
102 } | 99 } |
103 } | 100 } |
OLD | NEW |