OLD | NEW |
---|---|
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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
375 optional string path = 1; | 375 optional string path = 1; |
376 optional ClientDownloadRequest.Digests digest = 2; | 376 optional ClientDownloadRequest.Digests digest = 2; |
377 optional string version = 3; | 377 optional string version = 3; |
378 optional bool blacklist_initialized = 4; | 378 optional bool blacklist_initialized = 4; |
379 optional ClientDownloadRequest.SignatureInfo signature = 5; | 379 optional ClientDownloadRequest.SignatureInfo signature = 5; |
380 optional ClientDownloadRequest.ImageHeaders image_headers = 6; | 380 optional ClientDownloadRequest.ImageHeaders image_headers = 6; |
381 } | 381 } |
382 message VariationsSeedSignatureIncident { | 382 message VariationsSeedSignatureIncident { |
383 optional string variations_seed_signature = 1; | 383 optional string variations_seed_signature = 1; |
384 } | 384 } |
385 message ScriptRequestIncident { | 385 message ResourceRequestIncident { |
386 optional bytes script_digest = 1; | 386 enum Type { |
387 optional string inclusion_origin = 2; | 387 UNKNOWN = 0; |
388 TYPE_SCRIPT = 1; | |
389 TYPE_DOMAIN = 2; | |
390 } | |
391 optional bytes digest = 1; | |
392 optional string origin = 2; | |
393 optional Type type = 3; | |
grt (UTC plus 2)
2015/04/01 20:17:07
please change this line to:
optional Type ty
| |
388 } | 394 } |
389 optional int64 incident_time_msec = 1; | 395 optional int64 incident_time_msec = 1; |
390 optional TrackedPreferenceIncident tracked_preference = 2; | 396 optional TrackedPreferenceIncident tracked_preference = 2; |
391 optional BinaryIntegrityIncident binary_integrity = 3; | 397 optional BinaryIntegrityIncident binary_integrity = 3; |
392 optional BlacklistLoadIncident blacklist_load = 4; | 398 optional BlacklistLoadIncident blacklist_load = 4; |
393 // Note: skip tag 5 because it was previously used. | 399 // Note: skip tag 5 because it was previously used. |
394 optional VariationsSeedSignatureIncident variations_seed_signature = 6; | 400 optional VariationsSeedSignatureIncident variations_seed_signature = 6; |
395 optional ScriptRequestIncident script_request = 7; | 401 optional ResourceRequestIncident resource_request = 7; |
396 } | 402 } |
397 | 403 |
398 repeated IncidentData incident = 1; | 404 repeated IncidentData incident = 1; |
399 | 405 |
400 message DownloadDetails { | 406 message DownloadDetails { |
401 optional bytes token = 1; | 407 optional bytes token = 1; |
402 optional ClientDownloadRequest download = 2; | 408 optional ClientDownloadRequest download = 2; |
403 optional int64 download_time_msec = 3; | 409 optional int64 download_time_msec = 3; |
404 optional int64 open_time_msec = 4; | 410 optional int64 open_time_msec = 4; |
405 } | 411 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
478 message EnvironmentRequest { optional int32 dll_index = 1; } | 484 message EnvironmentRequest { optional int32 dll_index = 1; } |
479 | 485 |
480 repeated EnvironmentRequest environment_requests = 3; | 486 repeated EnvironmentRequest environment_requests = 3; |
481 } | 487 } |
482 | 488 |
483 message DownloadMetadata { | 489 message DownloadMetadata { |
484 optional uint32 download_id = 1; | 490 optional uint32 download_id = 1; |
485 | 491 |
486 optional ClientIncidentReport.DownloadDetails download = 2; | 492 optional ClientIncidentReport.DownloadDetails download = 2; |
487 } | 493 } |
OLD | NEW |