| 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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 | 922 |
| 923 // bodydigest and bodylength can be useful if the report does not | 923 // bodydigest and bodylength can be useful if the report does not |
| 924 // contain the body itself. | 924 // contain the body itself. |
| 925 optional bytes bodydigest = 4; // 32-byte hex md5 digest of body. | 925 optional bytes bodydigest = 4; // 32-byte hex md5 digest of body. |
| 926 optional int32 bodylength = 5; // length of body. | 926 optional int32 bodylength = 5; // length of body. |
| 927 } | 927 } |
| 928 | 928 |
| 929 message HTTPResponse { | 929 message HTTPResponse { |
| 930 message FirstLine { | 930 message FirstLine { |
| 931 optional int32 code = 1; | 931 optional int32 code = 1; |
| 932 optional bytes reason = 2; | 932 optional bytes message = 2; |
| 933 optional bytes version = 3; | 933 optional bytes version = 3; |
| 934 } | 934 } |
| 935 | 935 |
| 936 optional FirstLine firstline = 1; | 936 optional FirstLine firstline = 1; |
| 937 repeated HTTPHeader headers = 2; | 937 repeated HTTPHeader headers = 2; |
| 938 optional bytes body = 3; | 938 optional bytes body = 3; |
| 939 optional bytes bodydigest = 4; // 32-byte hex md5 digest of body. | 939 optional bytes bodydigest = 4; // 32-byte hex md5 digest of body. |
| 940 optional int32 bodylength = 5; // length of body. | 940 optional int32 bodylength = 5; // length of body. |
| 941 optional bytes remote_ip = 6; // IP of the server. | 941 optional bytes remote_ip = 6; // IP of the server. |
| 942 } | 942 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 // There is no response (an empty body) to this request. | 1034 // There is no response (an empty body) to this request. |
| 1035 message NotificationImageReportRequest { | 1035 message NotificationImageReportRequest { |
| 1036 optional string notification_origin = 1; // Src-origin of the notification. | 1036 optional string notification_origin = 1; // Src-origin of the notification. |
| 1037 optional ImageData image = 2; // The bitmap of the image. | 1037 optional ImageData image = 2; // The bitmap of the image. |
| 1038 | 1038 |
| 1039 // Note that the image URL is deliberately omitted as it would be untrusted, | 1039 // Note that the image URL is deliberately omitted as it would be untrusted, |
| 1040 // since the notification image fetch may be intercepted by a Service Worker | 1040 // since the notification image fetch may be intercepted by a Service Worker |
| 1041 // (even if the image URL is cross-origin). Otherwise a website could mislead | 1041 // (even if the image URL is cross-origin). Otherwise a website could mislead |
| 1042 // Safe Browsing into associating phishing image bitmaps with safe image URLs. | 1042 // Safe Browsing into associating phishing image bitmaps with safe image URLs. |
| 1043 } | 1043 } |
| OLD | NEW |