Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome/common/safe_browsing/csd.proto

Issue 2029903002: Add token field to ClientSafeBrowsingReportReqeust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit in test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 687
688 message DownloadMetadata { 688 message DownloadMetadata {
689 optional uint32 download_id = 1; 689 optional uint32 download_id = 1;
690 690
691 optional ClientIncidentReport.DownloadDetails download = 2; 691 optional ClientIncidentReport.DownloadDetails download = 2;
692 } 692 }
693 693
694 // A Detailed Safebrowsing Report from clients. Chrome safebrowsing reports are 694 // A Detailed Safebrowsing Report from clients. Chrome safebrowsing reports are
695 // only sent by Chrome users who have opted into extended Safe Browsing. 695 // only sent by Chrome users who have opted into extended Safe Browsing.
696 // This proto is replacing ClientMalwareReportRequest. 696 // This proto is replacing ClientMalwareReportRequest.
697 // Next tag: 12 697 // Next tag: 16
698 message ClientSafeBrowsingReportRequest { 698 message ClientSafeBrowsingReportRequest {
699 // Note: A lot of the "optional" fields would make sense to be 699 // Note: A lot of the "optional" fields would make sense to be
700 // "required" instead. However, having them as optional allows the 700 // "required" instead. However, having them as optional allows the
701 // clients to send "stripped down" versions of the message in the 701 // clients to send "stripped down" versions of the message in the
702 // future, if we want to. 702 // future, if we want to.
703 703
704 enum ReportType { 704 enum ReportType {
705 UNKNOWN = 0; 705 UNKNOWN = 0;
706 URL_PHISHING = 1; 706 URL_PHISHING = 1;
707 URL_MALWARE = 2; 707 URL_MALWARE = 2;
708 URL_UNWANTED = 3; 708 URL_UNWANTED = 3;
709 CLIENT_SIDE_PHISHING_URL = 4; 709 CLIENT_SIDE_PHISHING_URL = 4;
710 CLIENT_SIDE_MALWARE_URL = 5; 710 CLIENT_SIDE_MALWARE_URL = 5;
711 DANGEROUS_DOWNLOAD_RECOVERY = 6; 711 DANGEROUS_DOWNLOAD_RECOVERY = 6;
712 DANGEROUS_DOWNLOAD_WARNING = 7; 712 DANGEROUS_DOWNLOAD_WARNING = 7;
713 DANGEROUS_DOWNLOAD_BY_API = 10;
713 } 714 }
714 715
715 message HTTPHeader { 716 message HTTPHeader {
716 required bytes name = 1; 717 required bytes name = 1;
717 optional bytes value = 2; 718 optional bytes value = 2;
718 } 719 }
719 720
720 message HTTPRequest { 721 message HTTPRequest {
721 message FirstLine { 722 message FirstLine {
722 optional bytes verb = 1; 723 optional bytes verb = 1;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 optional string url = 2; 755 optional string url = 2;
755 optional HTTPRequest request = 3; 756 optional HTTPRequest request = 3;
756 optional HTTPResponse response = 4; 757 optional HTTPResponse response = 4;
757 optional int32 parent_id = 5; 758 optional int32 parent_id = 5;
758 repeated int32 child_ids = 6; 759 repeated int32 child_ids = 6;
759 optional string tag_name = 7; 760 optional string tag_name = 7;
760 } 761 }
761 762
762 optional ReportType type = 10; 763 optional ReportType type = 10;
763 764
764 // Only set if ReportType is DANGEROUS_DOWNLOAD_RECOVERY or 765 // Only set if ReportType is DANGEROUS_DOWNLOAD_RECOVERY,
765 // DANGEROUS_DOWNLOAD_WARNING. 766 // DANGEROUS_DOWNLOAD_WARNING or DANGEROUS_DOWNLOAD_BY_API.
766 optional ClientDownloadResponse.Verdict download_verdict = 11; 767 optional ClientDownloadResponse.Verdict download_verdict = 11;
767 768
768 // URL of the page in the address bar. 769 // URL of the page in the address bar.
769 optional string url = 1; 770 optional string url = 1;
770 optional string page_url = 2; 771 optional string page_url = 2;
771 optional string referrer_url = 3; 772 optional string referrer_url = 3;
772 773
773 repeated Resource resources = 4; 774 repeated Resource resources = 4;
774 775
775 // Whether the report is complete. 776 // Whether the report is complete.
776 optional bool complete = 5; 777 optional bool complete = 5;
777 778
778 // The ASN and country of the client IP. These fields are filled up by 779 // The ASN and country of the client IP. These fields are filled up by
779 // csd_frontend 780 // csd_frontend
780 repeated string client_asn = 6; 781 repeated string client_asn = 6;
781 optional string client_country = 7; 782 optional string client_country = 7;
782 783
783 // Whether user chose to proceed. 784 // Whether user chose to proceed.
784 optional bool did_proceed = 8; 785 optional bool did_proceed = 8;
785 786
786 // Whether user visited this origin before. 787 // Whether user visited this origin before.
787 optional bool repeat_visit = 9; 788 optional bool repeat_visit = 9;
789
790 // The same token in ClientDownloadResponse. This field is only set if its
791 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or
792 // DANGEROUS_DOWNLOAD_BY_API.
793 optional bytes token = 15;
788 } 794 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698