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

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

Issue 1643573002: Add a ModuleLoadAnalyzer which checks modules against a whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix incorrect and misleading unit tests in for blacklist_load and suspicious_module incidents Created 4 years, 10 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 // 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 message ResourceRequestIncident { 483 message ResourceRequestIncident {
484 enum Type { 484 enum Type {
485 UNKNOWN = 0; 485 UNKNOWN = 0;
486 TYPE_SCRIPT = 1; 486 TYPE_SCRIPT = 1;
487 TYPE_DOMAIN = 2; 487 TYPE_DOMAIN = 2;
488 } 488 }
489 optional bytes digest = 1; 489 optional bytes digest = 1;
490 optional string origin = 2; 490 optional string origin = 2;
491 optional Type type = 3 [default = UNKNOWN]; 491 optional Type type = 3 [default = UNKNOWN];
492 } 492 }
493 message SuspiciousModuleIncident {
494 optional string path = 1;
495 optional ClientDownloadRequest.Digests digest = 2;
496 optional string version = 3;
497 optional ClientDownloadRequest.SignatureInfo signature = 4;
498 optional ClientDownloadRequest.ImageHeaders image_headers = 5;
499 }
493 optional int64 incident_time_msec = 1; 500 optional int64 incident_time_msec = 1;
494 optional TrackedPreferenceIncident tracked_preference = 2; 501 optional TrackedPreferenceIncident tracked_preference = 2;
495 optional BinaryIntegrityIncident binary_integrity = 3; 502 optional BinaryIntegrityIncident binary_integrity = 3;
496 optional BlacklistLoadIncident blacklist_load = 4; 503 optional BlacklistLoadIncident blacklist_load = 4;
497 // Note: skip tag 5 because it was previously used. 504 // Note: skip tag 5 because it was previously used.
498 optional VariationsSeedSignatureIncident variations_seed_signature = 6; 505 optional VariationsSeedSignatureIncident variations_seed_signature = 6;
499 optional ResourceRequestIncident resource_request = 7; 506 optional ResourceRequestIncident resource_request = 7;
507 optional SuspiciousModuleIncident suspicious_module = 8;
500 } 508 }
501 509
502 repeated IncidentData incident = 1; 510 repeated IncidentData incident = 1;
503 511
504 message DownloadDetails { 512 message DownloadDetails {
505 optional bytes token = 1; 513 optional bytes token = 1;
506 optional ClientDownloadRequest download = 2; 514 optional ClientDownloadRequest download = 2;
507 optional int64 download_time_msec = 3; 515 optional int64 download_time_msec = 3;
508 optional int64 open_time_msec = 4; 516 optional int64 open_time_msec = 4;
509 } 517 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 // csd_frontend 760 // csd_frontend
753 repeated string client_asn = 6; 761 repeated string client_asn = 6;
754 optional string client_country = 7; 762 optional string client_country = 7;
755 763
756 // Whether user chose to proceed. 764 // Whether user chose to proceed.
757 optional bool did_proceed = 8; 765 optional bool did_proceed = 8;
758 766
759 // Whether user visited this origin before. 767 // Whether user visited this origin before.
760 optional bool repeat_visit = 9; 768 optional bool repeat_visit = 9;
761 } 769 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698