OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Safe Browsing reporting protocol buffers. | 5 // Safe Browsing reporting protocol buffers. |
6 // | 6 // |
7 // A ClientMalwareReportRequest is sent when a user opts-in to | 7 // A ClientMalwareReportRequest is sent when a user opts-in to |
8 // sending detailed malware reports from the safe browsing interstitial page. | 8 // sending detailed malware reports from the safe browsing interstitial page. |
9 // | 9 // |
10 // It is a list of Resource messages, which may contain the url of a | 10 // It is a list of Resource messages, which may contain the url of a |
11 // resource such as the page in the address bar or any other resource | 11 // resource such as the page in the address bar or any other resource |
12 // that was loaded for this page. | 12 // that was loaded for this page. |
13 // | 13 // |
14 // In addition to the url, a resource can contain HTTP request and response | 14 // In addition to the url, a resource can contain HTTP request and response |
15 // headers and bodies. | 15 // headers and bodies. |
16 | 16 |
17 syntax = "proto2"; | 17 syntax = "proto2"; |
18 | 18 |
19 option optimize_for = LITE_RUNTIME; | |
20 | |
21 package safe_browsing; | 19 package safe_browsing; |
22 | 20 |
23 message ClientMalwareReportRequest { | 21 message ClientMalwareReportRequest { |
24 | 22 |
25 message HTTPHeader { | 23 message HTTPHeader { |
26 required bytes name = 1; | 24 required bytes name = 1; |
27 optional bytes value = 2; | 25 optional bytes value = 2; |
28 } | 26 } |
29 | 27 |
30 message HTTPRequest { | 28 message HTTPRequest { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 82 |
85 // URL of the page in the address bar. | 83 // URL of the page in the address bar. |
86 optional string page_url = 2; | 84 optional string page_url = 2; |
87 | 85 |
88 optional string referrer_url = 3; | 86 optional string referrer_url = 3; |
89 repeated Resource resources = 4; | 87 repeated Resource resources = 4; |
90 | 88 |
91 // Whether the report has HTTP Responses. | 89 // Whether the report has HTTP Responses. |
92 optional bool complete = 5; | 90 optional bool complete = 5; |
93 } | 91 } |
OLD | NEW |