| 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. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // The full DER-encoded X.509 certificate extracted from the binary. | 139 // The full DER-encoded X.509 certificate extracted from the binary. |
| 140 optional bytes certificate_contents = 4; | 140 optional bytes certificate_contents = 4; |
| 141 } | 141 } |
| 142 | 142 |
| 143 // This field will only be set if the binary is signed. | 143 // This field will only be set if the binary is signed. |
| 144 optional SignatureInfo signature = 5; | 144 optional SignatureInfo signature = 5; |
| 145 | 145 |
| 146 // True if the download was user initiated. | 146 // True if the download was user initiated. |
| 147 optional bool user_initiated = 6; | 147 optional bool user_initiated = 6; |
| 148 } | 148 } |
| 149 |
| 150 message ClientDownloadResponse { |
| 151 enum Verdict { |
| 152 // Download is considered safe. |
| 153 SAFE = 0; |
| 154 // Download is considered dangerous. Chrome should show a warning to the |
| 155 // user. |
| 156 DANGEROUS = 1; |
| 157 } |
| 158 required Verdict verdict = 1; |
| 159 } |
| OLD | NEW |