• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2012 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.
4
5syntax = "proto2";
6
7package userfeedback;
8
9option optimize_for = LITE_RUNTIME;
10
11// Data present in Web related feedbacks
12
13import "annotations.proto";
14import "dom.proto";
15import "math.proto";
16
17// Data present in feedbacks sent from web extension.
18message WebData {
19  // Data captured from DOM Navigator object.
20  optional Navigator navigator = 1;
21
22  // Details of the extension from which this data was sent.
23  optional ExtensionDetails extension_details = 2;
24
25  // The URL of the document.
26  // Useful when user opts out from sending html structure.
27  optional string url = 3;
28
29  // A list of annotations.
30  repeated Annotation annotation = 4;
31
32  // The ID of the suggestion selected by the user.
33  // Possible values:
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;
42
43  repeated ProductSpecificData product_specific_data = 6;
44
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;
49};
50
51message ExtensionDetails {
52  // Indicates browser and mpm release.
53  required string extension_version = 1;
54
55  required string protocol_version = 2;
56};
57
58// Additional data sent by the internal version.
59message 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;
63
64  // Subject of the problem entered by user.
65  optional string subject = 2;
66
67  // If this flag is set then product support team should be notified
68  // immediately.
69  optional bool DEPRECATED_urgent = 3 [default = false];
70};
71
72// Product specific data. Contains one key/value pair that is specific to the
73// product for which feedback is submitted.
74message ProductSpecificData {
75  required string key = 1;
76  optional string value = 2;
77};
78
79message ProductSpecificBinaryData {
80  required string name = 1;
81
82  // mime_type of data
83  optional string mime_type = 2;
84
85  // raw data
86  optional bytes data = 3;
87};
88