| 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. |
| 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. |
| 21 required string url = 1; | 21 required string url = 1; |
| 22 | 22 |
| 23 // Score that was computed on the client. Value is between 0.0 and 1.0. | 23 // 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. | 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 | |
| 27 // Thumbnail from the client. Supports all typical image formats (png, jpg | |
| 28 // etc.). | |
| 29 required bytes snapshot = 3; | |
| 30 } | 26 } |
| 31 | 27 |
| 32 message ClientPhishingResponse { | 28 message ClientPhishingResponse { |
| 33 required bool phishy = 1; | 29 required bool phishy = 1; |
| 34 } | 30 } |
| OLD | NEW |