OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 message ImageHeaders { | 250 message ImageHeaders { |
251 // Windows Portable Executable image headers. | 251 // Windows Portable Executable image headers. |
252 optional PEImageHeaders pe_headers = 1; | 252 optional PEImageHeaders pe_headers = 1; |
253 }; | 253 }; |
254 | 254 |
255 // Fields 12-17 are reserved for server-side use and are never sent by the | 255 // Fields 12-17 are reserved for server-side use and are never sent by the |
256 // client. | 256 // client. |
257 | 257 |
258 optional ImageHeaders image_headers = 18; | 258 optional ImageHeaders image_headers = 18; |
| 259 |
| 260 // Fields 19-21 are reserved for server-side use and are never sent by the |
| 261 // client. |
| 262 |
| 263 // A binary contained in an archive (e.g., a .zip archive). |
| 264 message ArchivedBinary { |
| 265 optional string file_basename = 1; |
| 266 optional DownloadType download_type = 2; |
| 267 optional Digests digests = 3; |
| 268 optional int64 length = 4; |
| 269 optional SignatureInfo signature = 5; |
| 270 optional ImageHeaders image_headers = 6; |
| 271 } |
| 272 |
| 273 repeated ArchivedBinary archived_binary = 22; |
259 } | 274 } |
260 | 275 |
261 message ClientDownloadResponse { | 276 message ClientDownloadResponse { |
262 enum Verdict { | 277 enum Verdict { |
263 // Download is considered safe. | 278 // Download is considered safe. |
264 SAFE = 0; | 279 SAFE = 0; |
265 // Download is considered dangerous. Chrome should show a warning to the | 280 // Download is considered dangerous. Chrome should show a warning to the |
266 // user. | 281 // user. |
267 DANGEROUS = 1; | 282 DANGEROUS = 1; |
268 // Download is unknown. Chrome should display a less severe warning. | 283 // Download is unknown. Chrome should display a less severe warning. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 message EnvironmentRequest { optional int32 dll_index = 1; } | 478 message EnvironmentRequest { optional int32 dll_index = 1; } |
464 | 479 |
465 repeated EnvironmentRequest environment_requests = 3; | 480 repeated EnvironmentRequest environment_requests = 3; |
466 } | 481 } |
467 | 482 |
468 message DownloadMetadata { | 483 message DownloadMetadata { |
469 optional uint32 download_id = 1; | 484 optional uint32 download_id = 1; |
470 | 485 |
471 optional ClientIncidentReport.DownloadDetails download = 2; | 486 optional ClientIncidentReport.DownloadDetails download = 2; |
472 } | 487 } |
OLD | NEW |