summaryrefslogtreecommitdiffstats
path: root/chrome/browser/feedback/proto/extension.proto
blob: 7feecc073608f63ca056078891244e0e01d11bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Messages sent from extension to feedback server as JSON.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package userfeedback;

import "common.proto";
import "chrome.proto";
import "dom.proto";
import "math.proto";
import "web.proto";

// Sent along with request for extension page when user attempts to open
// feedback tab.
message ExtensionPageRequestParams {

  required ExtensionDetails extension_details = 1;

  // Url of the page (without request params) that user wants to open
  // feedback tool for.
  required string url = 2;
};

message PostedScreenshot {

  required string mime_type = 1;

  required Dimensions dimensions = 2;

  optional string base64_content = 3;

  optional bytes binary_content = 4;
};

// Contains data about possible errors on the client side.
// Describes number of attempts to send feedback and possible error codes/
// exceptions which occured.
message ExtensionErrors {

  required int32 number_of_attempts = 1;

  required string errors = 2;
};

// Sent when user hits final submit button.
message ExtensionSubmit {

  required CommonData common_data = 1;

  required WebData web_data = 2;

  required int32 type_id = 3;

  optional PostedScreenshot screenshot = 4;

  optional ChromeData chrome_data = 14;

  repeated ProductSpecificBinaryData product_specific_binary_data = 15;

  optional string category_tag = 16;
};

// A query for suggestions, sent when the user hits the preview button.
message SuggestQuery {

  required CommonData common_data = 1;

  required WebData web_data = 2;

  required int32 type_id = 3;

  optional HtmlDocument html_document_structure = 4;

  optional ChromeData chrome_data = 5;
};