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 // Client side phishing and malware detection request and response | 5 // Client side phishing and malware detection request and response |
6 // protocol buffers. Those protocol messages should be kept in sync | 6 // protocol buffers. Those protocol messages should be kept in sync |
7 // with the server implementation. | 7 // with the server implementation. |
8 // | 8 // |
9 // If you want to change this protocol definition or you have questions | 9 // If you want to change this protocol definition or you have questions |
10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. | 10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. |
(...skipping 13 matching lines...) Expand all Loading... | |
24 // The larger the value the more likely the url is phishing. | 24 // The larger the value the more likely the url is phishing. |
25 required float client_score = 2; | 25 required float client_score = 2; |
26 | 26 |
27 // Thumbnail from the client. Supports all typical image formats (png, jpg | 27 // Thumbnail from the client. Supports all typical image formats (png, jpg |
28 // etc.). | 28 // etc.). |
29 required bytes snapshot = 3; | 29 required bytes snapshot = 3; |
30 } | 30 } |
31 | 31 |
32 message ClientPhishingResponse { | 32 message ClientPhishingResponse { |
33 required bool phishy = 1; | 33 required bool phishy = 1; |
34 } | 34 } |
lzheng
2010/11/16 00:18:12
csd.proto was for client side detection. I suggest
panayiotis
2010/11/18 22:04:37
Done.
| |
35 | |
36 message ClientMalwareReportRequest { | |
37 | |
38 message HTTPHeader { | |
39 required string name = 1; | |
40 optional string value = 2; | |
41 } | |
42 | |
43 message HTTPRequest { | |
44 message FirstLine { | |
45 optional string verb = 1; | |
lzheng
2010/11/16 00:18:12
what is verb? You might need to add some descripti
panayiotis
2010/11/18 22:04:37
Done.
| |
46 optional string uri = 2; | |
47 optional string version = 3; | |
48 } | |
49 | |
50 optional FirstLine firstline = 1; | |
51 repeated HTTPHeader headers = 2; | |
52 optional string body = 3; | |
53 optional string bodydigest = 4; | |
54 optional int32 bodylength = 5; | |
55 } | |
56 | |
57 message HTTPResponse { | |
58 message FirstLine { | |
59 optional int32 code = 1; | |
60 optional string reason = 2; | |
61 optional string version = 3; | |
62 } | |
63 | |
64 optional FirstLine firstline = 1; | |
65 repeated HTTPHeader headers = 2; | |
66 optional string body = 3; | |
67 optional string bodydigest = 4; | |
68 optional int32 bodylength = 5; | |
69 optional string remote_ip = 6; | |
70 } | |
71 | |
72 message Resource { | |
73 optional string url = 1; | |
74 optional string parent = 2; | |
75 optional string tag_name = 3; | |
76 optional HTTPRequest request = 4; | |
77 optional HTTPResponse response = 5; | |
78 repeated string children = 6; | |
79 } | |
80 | |
81 optional string malware_url = 1; | |
82 optional string page_url = 2; | |
83 optional string referrer_url = 3; | |
84 repeated Resource nodes = 4; | |
85 } | |
OLD | NEW |