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
3 // found in the LICENSE file.
9 option optimize_for = LITE_RUNTIME;
11 // Data present in Web related feedbacks
13 import "annotations.proto";
16 // Data present in feedbacks sent from web extension.
18 // Data captured from DOM Navigator object.
19 optional Navigator navigator = 1;
21 // Details of the extension from which this data was sent.
22 optional ExtensionDetails extension_details = 2;
24 // The URL of the document.
25 // Useful when user opts out from sending html structure.
26 optional string url = 3;
28 // A list of annotations.
29 repeated Annotation annotation = 4;
31 // The ID of the suggestion selected by the user.
33 // - Not set if no suggestions were shown, either because the version of
34 // the client did not support suggestions, suggestions were disabled or
35 // no matching suggestions were found.
36 // - NONE_OF_THE_ABOVE if the user has chosen "None of the above".
37 // - Empty string if suggestions were shown but the user hasn't chosen
38 // any of them (and also she hasn't chosen "None of the above").
39 // - Actual suggestion identifier as returned from the server.
40 optional string suggestion_id = 5;
42 repeated ProductSpecificData product_specific_data = 6;
44 // Name of the binary data stored. Replicated from
45 // ProductSpecificBinaryData.name which is stored as a separate
46 // column in Feedbacks3 megastore table.
47 repeated string product_specific_binary_data_name = 7;
50 message ExtensionDetails {
51 // Indicates browser and mpm release.
52 required string extension_version = 1;
54 required string protocol_version = 2;
57 // Additional data sent by the internal version.
58 message InternalWebData {
59 // List of user names in google.com domain to which feedback should be sent
60 // directly apart from submitting it to server.
61 repeated string email_receiver = 1;
63 // Subject of the problem entered by user.
64 optional string subject = 2;
66 // If this flag is set then product support team should be notified
68 optional bool DEPRECATED_urgent = 3 [default = false];
71 // Product specific data. Contains one key/value pair that is specific to the
72 // product for which feedback is submitted.
73 message ProductSpecificData {
74 required string key = 1;
75 optional string value = 2;
78 message ProductSpecificBinaryData {
79 required string name = 1;
82 optional string mime_type = 2;
85 optional bytes data = 3;