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

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

Issue 1024943002: Add domain request detection to incident reporting service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set default type to unknown Created 5 years, 8 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') | tools/metrics/histograms/histograms.xml » ('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 // 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 optional string path = 1; 382 optional string path = 1;
383 optional ClientDownloadRequest.Digests digest = 2; 383 optional ClientDownloadRequest.Digests digest = 2;
384 optional string version = 3; 384 optional string version = 3;
385 optional bool blacklist_initialized = 4; 385 optional bool blacklist_initialized = 4;
386 optional ClientDownloadRequest.SignatureInfo signature = 5; 386 optional ClientDownloadRequest.SignatureInfo signature = 5;
387 optional ClientDownloadRequest.ImageHeaders image_headers = 6; 387 optional ClientDownloadRequest.ImageHeaders image_headers = 6;
388 } 388 }
389 message VariationsSeedSignatureIncident { 389 message VariationsSeedSignatureIncident {
390 optional string variations_seed_signature = 1; 390 optional string variations_seed_signature = 1;
391 } 391 }
392 message ScriptRequestIncident { 392 message ResourceRequestIncident {
393 optional bytes script_digest = 1; 393 enum Type {
394 optional string inclusion_origin = 2; 394 UNKNOWN = 0;
395 TYPE_SCRIPT = 1;
396 TYPE_DOMAIN = 2;
397 }
398 optional bytes digest = 1;
399 optional string origin = 2;
400 optional Type type = 3 [default = UNKNOWN];
395 } 401 }
396 optional int64 incident_time_msec = 1; 402 optional int64 incident_time_msec = 1;
397 optional TrackedPreferenceIncident tracked_preference = 2; 403 optional TrackedPreferenceIncident tracked_preference = 2;
398 optional BinaryIntegrityIncident binary_integrity = 3; 404 optional BinaryIntegrityIncident binary_integrity = 3;
399 optional BlacklistLoadIncident blacklist_load = 4; 405 optional BlacklistLoadIncident blacklist_load = 4;
400 // Note: skip tag 5 because it was previously used. 406 // Note: skip tag 5 because it was previously used.
401 optional VariationsSeedSignatureIncident variations_seed_signature = 6; 407 optional VariationsSeedSignatureIncident variations_seed_signature = 6;
402 optional ScriptRequestIncident script_request = 7; 408 optional ResourceRequestIncident resource_request = 7;
403 } 409 }
404 410
405 repeated IncidentData incident = 1; 411 repeated IncidentData incident = 1;
406 412
407 message DownloadDetails { 413 message DownloadDetails {
408 optional bytes token = 1; 414 optional bytes token = 1;
409 optional ClientDownloadRequest download = 2; 415 optional ClientDownloadRequest download = 2;
410 optional int64 download_time_msec = 3; 416 optional int64 download_time_msec = 3;
411 optional int64 open_time_msec = 4; 417 optional int64 open_time_msec = 4;
412 } 418 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 message EnvironmentRequest { optional int32 dll_index = 1; } 499 message EnvironmentRequest { optional int32 dll_index = 1; }
494 500
495 repeated EnvironmentRequest environment_requests = 3; 501 repeated EnvironmentRequest environment_requests = 3;
496 } 502 }
497 503
498 message DownloadMetadata { 504 message DownloadMetadata {
499 optional uint32 download_id = 1; 505 optional uint32 download_id = 1;
500 506
501 optional ClientIncidentReport.DownloadDetails download = 2; 507 optional ClientIncidentReport.DownloadDetails download = 2;
502 } 508 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698