| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // where the referrer uses HTTPS. | 103 // where the referrer uses HTTPS. |
| 104 optional string referrer_url = 4; | 104 optional string referrer_url = 4; |
| 105 | 105 |
| 106 // Field 5 and 6 are only used on the server. | 106 // Field 5 and 6 are only used on the server. |
| 107 | 107 |
| 108 message UrlInfo { | 108 message UrlInfo { |
| 109 required string ip = 1; | 109 required string ip = 1; |
| 110 required string url = 2; | 110 required string url = 2; |
| 111 optional string method = 3; | 111 optional string method = 3; |
| 112 optional string referrer = 4; | 112 optional string referrer = 4; |
| 113 // Resource type, the int value is a direct cast from the Type enum | 113 // Resource type, the int value is a direct cast from the Type enum |
| 114 // of ResourceType class defined in //src/webkit/commom/resource_type.h | 114 // of ResourceType class defined in //src/webkit/commom/resource_type.h |
| 115 optional int32 resource_type = 5; | 115 optional int32 resource_type = 5; |
| 116 } | 116 } |
| 117 | 117 |
| 118 // List of resource urls that match the malware IP list. | 118 // List of resource urls that match the malware IP list. |
| 119 repeated UrlInfo bad_ip_url_info = 7; | 119 repeated UrlInfo bad_ip_url_info = 7; |
| 120 } | 120 } |
| 121 | 121 |
| 122 message ClientMalwareResponse { | 122 message ClientMalwareResponse { |
| 123 required bool blacklist = 1; | 123 required bool blacklist = 1; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 } | 373 } |
| 374 optional OS os = 1; | 374 optional OS os = 1; |
| 375 message Machine { | 375 message Machine { |
| 376 optional string cpu_architecture = 1; | 376 optional string cpu_architecture = 1; |
| 377 optional string cpu_vendor = 2; | 377 optional string cpu_vendor = 2; |
| 378 optional uint32 cpuid = 3; | 378 optional uint32 cpuid = 3; |
| 379 } | 379 } |
| 380 optional Machine machine = 2; | 380 optional Machine machine = 2; |
| 381 message Process { | 381 message Process { |
| 382 optional string version = 1; | 382 optional string version = 1; |
| 383 repeated string OBSOLETE_dlls = 2; | 383 repeated string dlls = 2; |
| 384 message Patch { | 384 message Patch { |
| 385 optional string function = 1; | 385 optional string function = 1; |
| 386 optional string target_dll = 2; | 386 optional string target_dll = 2; |
| 387 } | 387 } |
| 388 repeated Patch patches = 3; | 388 repeated Patch patches = 3; |
| 389 message NetworkProvider {} | 389 message NetworkProvider {} |
| 390 repeated NetworkProvider network_providers = 4; | 390 repeated NetworkProvider network_providers = 4; |
| 391 enum Channel { | 391 enum Channel { |
| 392 CHANNEL_UNKNOWN = 0; | 392 CHANNEL_UNKNOWN = 0; |
| 393 CHANNEL_CANARY = 1; | 393 CHANNEL_CANARY = 1; |
| 394 CHANNEL_DEV = 2; | 394 CHANNEL_DEV = 2; |
| 395 CHANNEL_BETA = 3; | 395 CHANNEL_BETA = 3; |
| 396 CHANNEL_STABLE = 4; | 396 CHANNEL_STABLE = 4; |
| 397 } | 397 } |
| 398 optional Channel chrome_update_channel = 5; | 398 optional Channel chrome_update_channel = 5; |
| 399 optional int64 uptime_msec = 6; | 399 optional int64 uptime_msec = 6; |
| 400 optional bool metrics_consent = 7; | 400 optional bool metrics_consent = 7; |
| 401 optional bool extended_consent = 8; | 401 optional bool extended_consent = 8; |
| 402 message Dll { | |
| 403 enum Feature { | |
| 404 UNKNOWN = 0; | |
| 405 LSP = 1; | |
| 406 } | |
| 407 optional string path = 1; | |
| 408 optional uint64 base_address = 2; | |
| 409 optional uint32 length = 3; | |
| 410 repeated Feature feature = 4; | |
| 411 } | |
| 412 repeated Dll dll = 9; | |
| 413 } | 402 } |
| 414 optional Process process = 3; | 403 optional Process process = 3; |
| 415 } | 404 } |
| 416 | 405 |
| 417 optional EnvironmentData environment = 3; | 406 optional EnvironmentData environment = 3; |
| 418 } | 407 } |
| 419 | 408 |
| 420 message ClientIncidentResponse { | 409 message ClientIncidentResponse { |
| 421 optional bytes token = 1; | 410 optional bytes token = 1; |
| 422 optional bool download_requested = 2; | 411 optional bool download_requested = 2; |
| 423 | 412 |
| 424 message EnvironmentRequest { optional int32 dll_index = 1; } | 413 message EnvironmentRequest { optional int32 dll_index = 1; } |
| 425 | 414 |
| 426 repeated EnvironmentRequest environment_requests = 3; | 415 repeated EnvironmentRequest environment_requests = 3; |
| 427 } | 416 } |
| OLD | NEW |