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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // The upload was unsuccessful and the response is incomplete. | 327 // The upload was unsuccessful and the response is incomplete. |
328 UPLOAD_FAILURE = 1; | 328 UPLOAD_FAILURE = 1; |
329 } | 329 } |
330 | 330 |
331 // Holds the upload status | 331 // Holds the upload status |
332 optional UploadStatus status = 1; | 332 optional UploadStatus status = 1; |
333 | 333 |
334 // Holds the permalink where the results of scanning the binary are available | 334 // Holds the permalink where the results of scanning the binary are available |
335 optional string permalink = 2; | 335 optional string permalink = 2; |
336 } | 336 } |
| 337 |
| 338 message ClientIncidentReport { |
| 339 message IncidentData { |
| 340 message TrackedPreferenceIncident { |
| 341 enum ValueState { |
| 342 UNKNOWN = 0; |
| 343 CLEARED = 1; |
| 344 WEAK_LEGACY = 2; |
| 345 CHANGED = 3; |
| 346 UNTRUSTED_UNKNOWN_VALUE = 4; |
| 347 } |
| 348 |
| 349 optional string path = 1; |
| 350 optional string atomic_value = 2; |
| 351 optional string split_key = 3; |
| 352 optional ValueState value_state = 4; |
| 353 } |
| 354 optional int64 incident_time_msec = 1; |
| 355 optional TrackedPreferenceIncident tracked_preference = 2; |
| 356 } |
| 357 |
| 358 repeated IncidentData incident = 1; |
| 359 |
| 360 message DownloadDetails { |
| 361 optional bytes token = 1; |
| 362 optional ClientDownloadRequest download = 2; |
| 363 optional int64 download_time_msec = 3; |
| 364 optional int64 open_time_msec = 4; |
| 365 } |
| 366 |
| 367 optional DownloadDetails download = 2; |
| 368 |
| 369 message EnvironmentData { |
| 370 message OS { |
| 371 optional string os_name = 1; |
| 372 optional string os_version = 2; |
| 373 } |
| 374 optional OS os = 1; |
| 375 message Machine { |
| 376 optional string cpu_architecture = 1; |
| 377 optional string cpu_vendor = 2; |
| 378 optional uint32 cpuid = 3; |
| 379 } |
| 380 optional Machine machine = 2; |
| 381 message Process { |
| 382 repeated string dlls = 1; |
| 383 message Patch { |
| 384 optional string function = 1; |
| 385 optional string target_dll = 2; |
| 386 } |
| 387 repeated Patch patches = 2; |
| 388 message NetworkProvider {} |
| 389 repeated NetworkProvider network_providers = 3; |
| 390 } |
| 391 optional Process process = 3; |
| 392 } |
| 393 |
| 394 optional EnvironmentData environment = 3; |
| 395 } |
| 396 |
| 397 message ClientIncidentResponse { |
| 398 optional bytes token = 1; |
| 399 optional bool download_requested = 2; |
| 400 |
| 401 message EnvironmentRequest { optional int32 dll_index = 1; } |
| 402 |
| 403 repeated EnvironmentRequest environment_requests = 3; |
| 404 } |
OLD | NEW |