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

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

Issue 2072933002: Add sampling of unknown filetypes in download protection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add int values for histograms to ensure they match Created 4 years, 6 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/safe_browsing/file_type_policies.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This proto file includes: 5 // This proto file includes:
6 // (1) Client side phishing and malware detection request and response 6 // (1) Client side phishing and malware detection request and response
7 // protocol buffers. Those protocol messages should be kept in sync 7 // protocol buffers. Those protocol messages should be kept in sync
8 // with the server implementation. 8 // with the server implementation.
9 // 9 //
10 // (2) Safe Browsing reporting protocol buffers. 10 // (2) Safe Browsing reporting protocol buffers.
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // .zip files containing one of the other executable types. 279 // .zip files containing one of the other executable types.
280 ZIPPED_EXECUTABLE = 3; 280 ZIPPED_EXECUTABLE = 3;
281 MAC_EXECUTABLE = 4; // .dmg, .pkg, etc. 281 MAC_EXECUTABLE = 4; // .dmg, .pkg, etc.
282 ZIPPED_ARCHIVE = 5; // .zip file containing another archive. 282 ZIPPED_ARCHIVE = 5; // .zip file containing another archive.
283 ARCHIVE = 6; // Archive that doesn't have a specific DownloadType. 283 ARCHIVE = 6; // Archive that doesn't have a specific DownloadType.
284 // A .zip that Chrome failed to unpack to the point of finding exe/zips. 284 // A .zip that Chrome failed to unpack to the point of finding exe/zips.
285 INVALID_ZIP = 7; 285 INVALID_ZIP = 7;
286 // A .dmg, .pkg, etc, that Chrome failed to unpack to the point of finding 286 // A .dmg, .pkg, etc, that Chrome failed to unpack to the point of finding
287 // Mach O's. 287 // Mach O's.
288 INVALID_MAC_ARCHIVE = 8; 288 INVALID_MAC_ARCHIVE = 8;
289 PPAPI_SAVE_REQUEST = 289 // A download request initiated via PPAPI. Typically the requestor is
290 9; // A download request initiated via PPAPI. Typically 290 // a Flash applet.
291 // the requestor is a Flash applet. 291 PPAPI_SAVE_REQUEST = 9;
292 // A file we don't support, but we've decided to sample and send
293 // a light-ping.
294 SAMPLED_UNSUPPORTED_FILE = 10;
292 } 295 }
293 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE]; 296 optional DownloadType download_type = 10 [default = WIN_EXECUTABLE];
294 297
295 // Locale of the device, eg en, en_US. 298 // Locale of the device, eg en, en_US.
296 optional string locale = 11; 299 optional string locale = 11;
297 300
298 message PEImageHeaders { 301 message PEImageHeaders {
299 // IMAGE_DOS_HEADER. 302 // IMAGE_DOS_HEADER.
300 optional bytes dos_header = 1; 303 optional bytes dos_header = 1;
301 // IMAGE_FILE_HEADER. 304 // IMAGE_FILE_HEADER.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 optional bool did_proceed = 8; 788 optional bool did_proceed = 8;
786 789
787 // Whether user visited this origin before. 790 // Whether user visited this origin before.
788 optional bool repeat_visit = 9; 791 optional bool repeat_visit = 9;
789 792
790 // The same token in ClientDownloadResponse. This field is only set if its 793 // The same token in ClientDownloadResponse. This field is only set if its
791 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or 794 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or
792 // DANGEROUS_DOWNLOAD_BY_API. 795 // DANGEROUS_DOWNLOAD_BY_API.
793 optional bytes token = 15; 796 optional bytes token = 15;
794 } 797 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/safe_browsing/file_type_policies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698