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

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: Merge domain and script incidents, ignore top-level requests, improve unit tests 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 optional string path = 1; 360 optional string path = 1;
361 optional ClientDownloadRequest.Digests digest = 2; 361 optional ClientDownloadRequest.Digests digest = 2;
362 optional string version = 3; 362 optional string version = 3;
363 optional bool blacklist_initialized = 4; 363 optional bool blacklist_initialized = 4;
364 optional ClientDownloadRequest.SignatureInfo signature = 5; 364 optional ClientDownloadRequest.SignatureInfo signature = 5;
365 optional ClientDownloadRequest.ImageHeaders image_headers = 6; 365 optional ClientDownloadRequest.ImageHeaders image_headers = 6;
366 } 366 }
367 message VariationsSeedSignatureIncident { 367 message VariationsSeedSignatureIncident {
368 optional string variations_seed_signature = 1; 368 optional string variations_seed_signature = 1;
369 } 369 }
370 message ScriptRequestIncident { 370 message ResourceRequestIncident {
371 optional string script_digest = 1; 371 enum Type {
grt (UTC plus 2) 2015/03/27 14:17:44 I changed this from "string" to "bytes" yesterday.
romanl 2015/03/30 14:46:50 Done.
372 optional string inclusion_origin = 2; 372 UNKNOWN = 0;
373 TYPE_SCRIPT = 1;
374 TYPE_DOMAIN = 2;
375 }
376 optional string digest = 1;
377 optional string origin = 2;
378 optional Type type = 3;
373 } 379 }
374 optional int64 incident_time_msec = 1; 380 optional int64 incident_time_msec = 1;
375 optional TrackedPreferenceIncident tracked_preference = 2; 381 optional TrackedPreferenceIncident tracked_preference = 2;
376 optional BinaryIntegrityIncident binary_integrity = 3; 382 optional BinaryIntegrityIncident binary_integrity = 3;
377 optional BlacklistLoadIncident blacklist_load = 4; 383 optional BlacklistLoadIncident blacklist_load = 4;
378 // Note: skip tag 5 because it was previously used. 384 // Note: skip tag 5 because it was previously used.
379 optional VariationsSeedSignatureIncident variations_seed_signature = 6; 385 optional VariationsSeedSignatureIncident variations_seed_signature = 6;
380 optional ScriptRequestIncident script_request = 7; 386 optional ResourceRequestIncident resource_request = 7;
381 } 387 }
382 388
383 repeated IncidentData incident = 1; 389 repeated IncidentData incident = 1;
384 390
385 message DownloadDetails { 391 message DownloadDetails {
386 optional bytes token = 1; 392 optional bytes token = 1;
387 optional ClientDownloadRequest download = 2; 393 optional ClientDownloadRequest download = 2;
388 optional int64 download_time_msec = 3; 394 optional int64 download_time_msec = 3;
389 optional int64 open_time_msec = 4; 395 optional int64 open_time_msec = 4;
390 } 396 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 message EnvironmentRequest { optional int32 dll_index = 1; } 469 message EnvironmentRequest { optional int32 dll_index = 1; }
464 470
465 repeated EnvironmentRequest environment_requests = 3; 471 repeated EnvironmentRequest environment_requests = 3;
466 } 472 }
467 473
468 message DownloadMetadata { 474 message DownloadMetadata {
469 optional uint32 download_id = 1; 475 optional uint32 download_id = 1;
470 476
471 optional ClientIncidentReport.DownloadDetails download = 2; 477 optional ClientIncidentReport.DownloadDetails download = 2;
472 } 478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698