Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1607)

Unified Diff: chrome/browser/userfeedback/proto/extension.proto

Issue 2068004: Commiting http://codereview.chromium.org/2017007/show on behalf of rkc@chromi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/userfeedback/proto/extension.proto
===================================================================
--- chrome/browser/userfeedback/proto/extension.proto (revision 0)
+++ chrome/browser/userfeedback/proto/extension.proto (revision 0)
@@ -0,0 +1,99 @@
+// Copyright 2009 Google Inc. All Rights Reserved.
+// Author: morgwai@google.com (Morgwai Kotarbinski)
+//
+// Messages sent from extension to feedback server as JSON.
+
+syntax = "proto2";
+
+package userfeedback;
+
+import "common.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 in external extension.
+// NOTE: Field numbers for ExternalExtensionSubmit and InternalExtensionSubmit
+// share the same number space, because we don't want submission from internal
+// extension to the external address, or submission from external extension to
+// internal address, work by accident, partially work, or break in an odd way.
+// If the field numbers were overlapping for both protos, such cross-submission
+// might work, due to the specifics of JsPbLite.
+message ExternalExtensionSubmit {
+
+ required CommonData common_data = 1;
+
+ required WebData web_data = 2;
+
+ required int32 type_id = 3;
+
+ optional PostedScreenshot screenshot = 4;
+
+ optional HtmlDocument html_document_structure = 5;
+
+ optional ExtensionErrors extension_errors = 13;
+};
+
+// Sent when user hits final submit button in internal extension.
+// NOTE: Field numbers for ExternalExtensionSubmit and InternalExtensionSubmit
+// share the same number space. See comment for ExternalExtensionSubmit.
+message InternalExtensionSubmit {
+
+ required CommonData common_data = 6;
+
+ required WebData web_data = 7;
+
+ optional int32 type_id = 8;
+
+ optional PostedScreenshot screenshot = 9;
+
+ optional HtmlDocument html_document_structure = 10;
+
+ optional InternalWebData internal_data = 11;
+
+ optional ExtensionErrors extension_errors = 12;
+};
+
+// 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;
+};

Powered by Google App Engine
This is Rietveld 408576698