| 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 16 matching lines...) Expand all Loading... |
| 27 // When the request was initiated. | 27 // When the request was initiated. |
| 28 repeated RequestTrigger request_trigger = 4; | 28 repeated RequestTrigger request_trigger = 4; |
| 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 // TODO(stefanocs): Update field_trials field to store hashes instead of | 37 repeated FieldTrial field_trials = 7; |
| 38 // string. | |
| 39 repeated string field_trials = 7; | |
| 40 | 38 |
| 41 // Platform | 39 // Platform |
| 42 enum PlatformType { | 40 enum PlatformType { |
| 43 PLATFORM_TYPE_UNSPECIFIED = 0; | 41 PLATFORM_TYPE_UNSPECIFIED = 0; |
| 44 DESKTOP_PLATFORM = 1; | 42 DESKTOP_PLATFORM = 1; |
| 45 ANDROID_PLATFORM = 2; | 43 ANDROID_PLATFORM = 2; |
| 46 } | 44 } |
| 47 | 45 |
| 48 // 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. |
| 49 enum RequestTrigger { | 47 enum RequestTrigger { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 MIDI_SYSEX = 1; | 80 MIDI_SYSEX = 1; |
| 83 PUSH_MESSAGING = 2; | 81 PUSH_MESSAGING = 2; |
| 84 NOTIFICATIONS = 3; | 82 NOTIFICATIONS = 3; |
| 85 GEOLOCATION = 4; | 83 GEOLOCATION = 4; |
| 86 PROTECTED_MEDIA_IDENTIFIER = 5; | 84 PROTECTED_MEDIA_IDENTIFIER = 5; |
| 87 MIDI = 6; | 85 MIDI = 6; |
| 88 DURABLE_STORAGE = 7; | 86 DURABLE_STORAGE = 7; |
| 89 AUDIO_CAPTURE = 8; | 87 AUDIO_CAPTURE = 8; |
| 90 VIDEO_CAPTURE = 9; | 88 VIDEO_CAPTURE = 9; |
| 91 } | 89 } |
| 90 |
| 91 // Description of a field trial or experiment that the user is currently |
| 92 // enrolled in. All metrics reported in this upload can potentially be |
| 93 // influenced by the field trial. |
| 94 message FieldTrial { |
| 95 // The name of the field trial, as a 32-bit identifier. Currently, the |
| 96 // identifier is a hash of the field trial's name. |
| 97 optional fixed32 name_id = 1; |
| 98 |
| 99 // 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. |
| 101 optional fixed32 group_id = 2; |
| 102 } |
| 92 } | 103 } |
| OLD | NEW |