OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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. |
11 | 11 |
12 syntax = "proto2"; | 12 syntax = "proto2"; |
13 | 13 |
14 option optimize_for = LITE_RUNTIME; | 14 option optimize_for = LITE_RUNTIME; |
15 | 15 |
16 package safe_browsing; | 16 package safe_browsing; |
17 | 17 |
18 message ClientPhishingRequest { | 18 message ClientPhishingRequest { |
19 // URL that the client visited. The CGI parameters are stripped by the | 19 // URL that the client visited. The CGI parameters are stripped by the |
20 // client. | 20 // client. This field is ONLY set for UMA-enabled users. |
21 required string url = 1; | 21 optional string url = 1; |
| 22 |
| 23 // A 5-byte SHA-256 hash prefix of the URL, in SafeBrowsing host sufffix/path |
| 24 // prefix form with query parameters stripped (i.e. "www.example.com/1/2/"). |
| 25 // Unlike "url", this is sent for all users. |
| 26 optional bytes suffix_prefix_hash = 10; |
22 | 27 |
23 // Score that was computed on the client. Value is between 0.0 and 1.0. | 28 // Score that was computed on the client. Value is between 0.0 and 1.0. |
24 // The larger the value the more likely the url is phishing. | 29 // The larger the value the more likely the url is phishing. |
25 required float client_score = 2; | 30 required float client_score = 2; |
26 | 31 |
27 // Note: we're skipping tag 3 because it was previously used. | 32 // Note: we're skipping tag 3 because it was previously used. |
28 | 33 |
29 // Is true if the features for this URL were classified as phishing. | 34 // Is true if the features for this URL were classified as phishing. |
30 // Currently, this will always be true for all client-phishing requests | 35 // Currently, this will always be true for all client-phishing requests |
31 // that are sent to the server. | 36 // that are sent to the server. |
(...skipping 24 matching lines...) Expand all Loading... |
56 | 61 |
57 // The referrer URL. This field might not be set, for example, in the case | 62 // The referrer URL. This field might not be set, for example, in the case |
58 // where the referrer uses HTTPs. | 63 // where the referrer uses HTTPs. |
59 // OBSOLETE: Use feature 'Referrer=<referrer>' instead. | 64 // OBSOLETE: Use feature 'Referrer=<referrer>' instead. |
60 optional string OBSOLETE_referrer_url = 9; | 65 optional string OBSOLETE_referrer_url = 9; |
61 } | 66 } |
62 | 67 |
63 message ClientPhishingResponse { | 68 message ClientPhishingResponse { |
64 required bool phishy = 1; | 69 required bool phishy = 1; |
65 } | 70 } |
OLD | NEW |