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 // This proto file includes: | 5 // This proto file includes: |
6 // (1) Client side phishing and malware detection request and response | 6 // (1) Client side phishing and malware detection request and response |
7 // protocol buffers. Those protocol messages should be kept in sync | 7 // protocol buffers. Those protocol messages should be kept in sync |
8 // with the server implementation. | 8 // with the server implementation. |
9 // | 9 // |
10 // (2) Safe Browsing reporting protocol buffers. | 10 // (2) Safe Browsing reporting protocol buffers. |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 optional bool skipped_url_whitelist = 28; | 375 optional bool skipped_url_whitelist = 28; |
376 | 376 |
377 // True if this ClientDownloadRequest contains a whitelisted certificate. | 377 // True if this ClientDownloadRequest contains a whitelisted certificate. |
378 optional bool skipped_certificate_whitelist = 31; | 378 optional bool skipped_certificate_whitelist = 31; |
379 | 379 |
380 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. | 380 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. |
381 // Each element in this collection indicates an alternate extension including | 381 // Each element in this collection indicates an alternate extension including |
382 // the leading extension separator. | 382 // the leading extension separator. |
383 repeated string alternate_extensions = 35; | 383 repeated string alternate_extensions = 35; |
384 | 384 |
385 message URLChainEntry { | |
386 enum URLType { | |
387 DOWNLOAD_URL = 1; | |
388 DOWNLOAD_REFERRER = 2; | |
389 LANDING_PAGE = 3; | |
390 LANDING_REFERRER = 4; | |
391 CLIENT_REDIRECT = 5; | |
392 SERVER_REDIRECT = 6; | |
393 } | |
394 | |
395 // [required] The url of this Entry. | |
396 optional string url = 1; | |
397 | |
398 // Type of URLs, such as download url, download referrer, etc. | |
399 optional URLType type = 2; | |
400 | |
401 // IP address corresponding to url. | |
402 optional string ip_address = 3; | |
403 | |
404 // Referrer url of this entry. | |
405 optional string referrer = 4; | |
406 | |
407 // Main frame URL of referrer. | |
408 optional string main_frame_referrer = 5; | |
409 | |
410 // If this URL loads in a different tab/frame from previous one. | |
411 optional bool is_retargeting = 6; | |
412 | |
413 // If there is a user gesture attached to this transition. | |
414 optional bool is_user_initiated = 7; | |
415 | |
416 optional double timestamp_in_millisec = 8; | |
417 } // End of URLChainEntry | |
418 | |
419 // URLs transitions from landing referrer to download in reverse chronological | 385 // URLs transitions from landing referrer to download in reverse chronological |
420 // order, i.e. download url comes first in this list, and landing referrer | 386 // order, i.e. download url comes first in this list, and landing referrer |
421 // comes last. | 387 // comes last. |
422 repeated URLChainEntry url_chain = 36; | 388 repeated ReferrerChainEntry referrer_chain = 36; |
423 } | 389 } |
424 | 390 |
| 391 message ReferrerChainEntry { |
| 392 enum URLType { |
| 393 DOWNLOAD_URL = 1; |
| 394 LANDING_PAGE = 2; |
| 395 LANDING_REFERRER = 3; |
| 396 CLIENT_REDIRECT = 4; |
| 397 SERVER_REDIRECT = 5; |
| 398 } |
| 399 |
| 400 // [required] The url of this Entry. |
| 401 optional string url = 1; |
| 402 |
| 403 // Type of URLs, such as download url, download referrer, etc. |
| 404 optional URLType type = 2; |
| 405 |
| 406 // IP addresses corresponding to this host. |
| 407 repeated string ip_addresses = 3; |
| 408 |
| 409 // Referrer url of this entry. |
| 410 optional string referrer_url = 4; |
| 411 |
| 412 // Main frame URL of referrer. |
| 413 optional string referrer_main_frame_url = 5; |
| 414 |
| 415 // If this URL loads in a different tab/frame from previous one. |
| 416 optional bool is_retargeting = 6; |
| 417 |
| 418 optional double navigation_time_msec = 7; |
| 419 } // End of URLChainEntry |
| 420 |
425 message ClientDownloadResponse { | 421 message ClientDownloadResponse { |
426 enum Verdict { | 422 enum Verdict { |
427 // Download is considered safe. | 423 // Download is considered safe. |
428 SAFE = 0; | 424 SAFE = 0; |
429 // Download is considered dangerous. Chrome should show a warning to the | 425 // Download is considered dangerous. Chrome should show a warning to the |
430 // user. | 426 // user. |
431 DANGEROUS = 1; | 427 DANGEROUS = 1; |
432 // Download is uncommon. Chrome should display a less severe warning. | 428 // Download is uncommon. Chrome should display a less severe warning. |
433 UNCOMMON = 2; | 429 UNCOMMON = 2; |
434 // The download is potentially unwanted. | 430 // The download is potentially unwanted. |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 optional bool did_proceed = 8; | 828 optional bool did_proceed = 8; |
833 | 829 |
834 // Whether user visited this origin before. | 830 // Whether user visited this origin before. |
835 optional bool repeat_visit = 9; | 831 optional bool repeat_visit = 9; |
836 | 832 |
837 // The same token in ClientDownloadResponse. This field is only set if its | 833 // The same token in ClientDownloadResponse. This field is only set if its |
838 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or | 834 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or |
839 // DANGEROUS_DOWNLOAD_BY_API. | 835 // DANGEROUS_DOWNLOAD_BY_API. |
840 optional bytes token = 15; | 836 optional bytes token = 15; |
841 } | 837 } |
OLD | NEW |