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

Side by Side Diff: components/safe_browsing/csd.proto

Issue 2925693003: Making CSD ReportType enum consistent. (Closed)
Patch Set: Handling SBThreatType enums as well Created 3 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 // Note: A lot of the "optional" fields would make sense to be 896 // Note: A lot of the "optional" fields would make sense to be
897 // "required" instead. However, having them as optional allows the 897 // "required" instead. However, having them as optional allows the
898 // clients to send "stripped down" versions of the message in the 898 // clients to send "stripped down" versions of the message in the
899 // future, if we want to. 899 // future, if we want to.
900 900
901 enum ReportType { 901 enum ReportType {
902 UNKNOWN = 0; 902 UNKNOWN = 0;
903 URL_PHISHING = 1; 903 URL_PHISHING = 1;
904 URL_MALWARE = 2; 904 URL_MALWARE = 2;
905 URL_UNWANTED = 3; 905 URL_UNWANTED = 3;
906 CLIENT_SIDE_PHISHING_URL = 4; 906 URL_CLIENT_SIDE_PHISHING = 4;
907 CLIENT_SIDE_MALWARE_URL = 5; 907 URL_CLIENT_SIDE_MALWARE = 5;
908 DANGEROUS_DOWNLOAD_RECOVERY = 6; 908 DANGEROUS_DOWNLOAD_RECOVERY = 6;
909 DANGEROUS_DOWNLOAD_WARNING = 7; 909 DANGEROUS_DOWNLOAD_WARNING = 7;
910 DANGEROUS_DOWNLOAD_BY_API = 10; 910 DANGEROUS_DOWNLOAD_BY_API = 10;
911 PASSWORD_PROTECTION_PHISHING_URL = 12; 911 URL_PASSWORD_PROTECTION_PHISHING = 12;
912 } 912 }
913 913
914 message HTTPHeader { 914 message HTTPHeader {
915 required bytes name = 1; 915 required bytes name = 1;
916 optional bytes value = 2; 916 optional bytes value = 2;
917 } 917 }
918 918
919 message HTTPRequest { 919 message HTTPRequest {
920 message FirstLine { 920 message FirstLine {
921 optional bytes verb = 1; 921 optional bytes verb = 1;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 // There is no response (an empty body) to this request. 1042 // There is no response (an empty body) to this request.
1043 message NotificationImageReportRequest { 1043 message NotificationImageReportRequest {
1044 optional string notification_origin = 1; // Src-origin of the notification. 1044 optional string notification_origin = 1; // Src-origin of the notification.
1045 optional ImageData image = 2; // The bitmap of the image. 1045 optional ImageData image = 2; // The bitmap of the image.
1046 1046
1047 // Note that the image URL is deliberately omitted as it would be untrusted, 1047 // Note that the image URL is deliberately omitted as it would be untrusted,
1048 // since the notification image fetch may be intercepted by a Service Worker 1048 // since the notification image fetch may be intercepted by a Service Worker
1049 // (even if the image URL is cross-origin). Otherwise a website could mislead 1049 // (even if the image URL is cross-origin). Otherwise a website could mislead
1050 // Safe Browsing into associating phishing image bitmaps with safe image URLs. 1050 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1051 } 1051 }
OLDNEW
« no previous file with comments | « components/safe_browsing/browser/threat_details.cc ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698