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 18 matching lines...) Expand all Loading... |
29 // data. | 29 // data. |
30 message ChromeUserPopulation { | 30 message ChromeUserPopulation { |
31 enum UserPopulation { | 31 enum UserPopulation { |
32 UNKNOWN_USER_POPULATION = 0; | 32 UNKNOWN_USER_POPULATION = 0; |
33 SAFE_BROWSING = 1; | 33 SAFE_BROWSING = 1; |
34 EXTENDED_REPORTING = 2; | 34 EXTENDED_REPORTING = 2; |
35 } | 35 } |
36 optional UserPopulation user_population = 1; | 36 optional UserPopulation user_population = 1; |
37 } | 37 } |
38 | 38 |
39 | |
40 message ClientPhishingRequest { | 39 message ClientPhishingRequest { |
41 // URL that the client visited. The CGI parameters are stripped by the | 40 // URL that the client visited. The CGI parameters are stripped by the |
42 // client. | 41 // client. |
43 optional string url = 1; | 42 optional string url = 1; |
44 | 43 |
45 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is | 44 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is |
46 // canonicalized, converted to a suffix-prefix expression and broadened | 45 // canonicalized, converted to a suffix-prefix expression and broadened |
47 // (www prefix is removed and everything past the last '/' is stripped). | 46 // (www prefix is removed and everything past the last '/' is stripped). |
48 // | 47 // |
49 // Marked OBSOLETE because the URL is sent for all users, making the hash | 48 // Marked OBSOLETE because the URL is sent for all users, making the hash |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 } | 463 } |
465 | 464 |
466 repeated ArchivedBinary archived_binary = 22; | 465 repeated ArchivedBinary archived_binary = 22; |
467 | 466 |
468 // Population that the reporting user is part of. | 467 // Population that the reporting user is part of. |
469 optional ChromeUserPopulation population = 24; | 468 optional ChromeUserPopulation population = 24; |
470 | 469 |
471 // True if the .zip or DMG, etc, was 100% successfully unpacked. | 470 // True if the .zip or DMG, etc, was 100% successfully unpacked. |
472 optional bool archive_valid = 26; | 471 optional bool archive_valid = 26; |
473 | 472 |
474 // True if this ClientDownloadRequest is from a whitelisted domain. | 473 // True if this ClientDownloadRequest is from a whitelisted domain. |
475 optional bool skipped_url_whitelist = 28; | 474 optional bool skipped_url_whitelist = 28; |
476 | 475 |
477 // True if this ClientDownloadRequest contains a whitelisted certificate. | 476 // True if this ClientDownloadRequest contains a whitelisted certificate. |
478 optional bool skipped_certificate_whitelist = 31; | 477 optional bool skipped_certificate_whitelist = 31; |
479 | 478 |
480 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. | 479 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. |
481 // Each element in this collection indicates an alternate extension including | 480 // Each element in this collection indicates an alternate extension including |
482 // the leading extension separator. | 481 // the leading extension separator. |
483 repeated string alternate_extensions = 35; | 482 repeated string alternate_extensions = 35; |
484 | 483 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 570 |
572 // Whether the server requests that this binary be uploaded. | 571 // Whether the server requests that this binary be uploaded. |
573 optional bool upload = 5; | 572 optional bool upload = 5; |
574 } | 573 } |
575 | 574 |
576 // The following protocol buffer holds the feedback report gathered | 575 // The following protocol buffer holds the feedback report gathered |
577 // from the user regarding the download. | 576 // from the user regarding the download. |
578 message ClientDownloadReport { | 577 message ClientDownloadReport { |
579 // The information of user who provided the feedback. | 578 // The information of user who provided the feedback. |
580 // This is going to be useful for handling appeals. | 579 // This is going to be useful for handling appeals. |
581 message UserInformation { | 580 message UserInformation { optional string email = 1; } |
582 optional string email = 1; | |
583 } | |
584 | 581 |
585 enum Reason { | 582 enum Reason { |
586 SHARE = 0; | 583 SHARE = 0; |
587 FALSE_POSITIVE = 1; | 584 FALSE_POSITIVE = 1; |
588 APPEAL = 2; | 585 APPEAL = 2; |
589 } | 586 } |
590 | 587 |
591 // The type of feedback for this report. | 588 // The type of feedback for this report. |
592 optional Reason reason = 1; | 589 optional Reason reason = 1; |
593 | 590 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 // There is no response (an empty body) to this request. | 1007 // There is no response (an empty body) to this request. |
1011 message NotificationImageReportRequest { | 1008 message NotificationImageReportRequest { |
1012 optional string notification_origin = 1; // Src-origin of the notification. | 1009 optional string notification_origin = 1; // Src-origin of the notification. |
1013 optional ImageData image = 2; // The bitmap of the image. | 1010 optional ImageData image = 2; // The bitmap of the image. |
1014 | 1011 |
1015 // Note that the image URL is deliberately omitted as it would be untrusted, | 1012 // Note that the image URL is deliberately omitted as it would be untrusted, |
1016 // since the notification image fetch may be intercepted by a Service Worker | 1013 // since the notification image fetch may be intercepted by a Service Worker |
1017 // (even if the image URL is cross-origin). Otherwise a website could mislead | 1014 // (even if the image URL is cross-origin). Otherwise a website could mislead |
1018 // Safe Browsing into associating phishing image bitmaps with safe image URLs. | 1015 // Safe Browsing into associating phishing image bitmaps with safe image URLs. |
1019 } | 1016 } |
OLD | NEW |