Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/common/safe_browsing/csd.proto

Issue 999003003: Include attributes of zipped binaries in ClientDownloadRequests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip2
Patch Set: fix ordering of SandboxedZipAnalyzer methods Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698