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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
828 optional bool did_proceed = 8; | 828 optional bool did_proceed = 8; |
829 | 829 |
830 // Whether user visited this origin before. | 830 // Whether user visited this origin before. |
831 optional bool repeat_visit = 9; | 831 optional bool repeat_visit = 9; |
832 | 832 |
833 // 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 |
834 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or | 834 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or |
835 // DANGEROUS_DOWNLOAD_BY_API. | 835 // DANGEROUS_DOWNLOAD_BY_API. |
836 optional bytes token = 15; | 836 optional bytes token = 15; |
837 } | 837 } |
838 | |
839 // Canonical representation of raster image data. | |
840 message ImageData { | |
841 // Image bitmap, after downscaling to <= 512x512. | |
842 optional bytes data = 1; | |
843 | |
844 // Encoding scheme for the bitmap. If not specified, assumed to be image/png. | |
Nathan Parker
2017/01/20 01:37:29
Let's remove the "if not specified" part since the
harkness
2017/01/20 16:58:06
Done.
| |
845 optional string mime_type = 2; | |
846 | |
847 message Dimensions { | |
848 optional int32 width = 1; | |
849 optional int32 height = 2; | |
850 } | |
851 | |
852 optional Dimensions dimensions = 3; | |
Nathan Parker
2017/01/20 01:37:28
Add comment
// Dimensions of the image stored in |
harkness
2017/01/20 16:58:06
Done.
| |
853 optional Dimensions original_dimensions = 4; // iff downscaled | |
854 } | |
855 | |
856 // Reporting protobuf for an image served as part of a browser notification. | |
857 // There is no response (an empty body) to this request. | |
858 message NotificationImageReportRequest { | |
859 optional string notification_origin = 1; // Src-origin of the notification. | |
860 optional ImageData image = 2; // The bitmap of the image. | |
861 | |
862 // Note that the image URL is deliberately omitted as it would be untrusted, | |
863 // since the notification image fetch may be intercepted by a Service Worker | |
864 // (even if the image URL is cross-origin). Otherwise a website could mislead | |
865 // Safe Browsing into associating phishing image bitmaps with safe image URLs. | |
866 } | |
OLD | NEW |