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