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

Unified Diff: chrome/common/safe_browsing/csd.proto

Issue 2624193004: Submit a sample of notification images to Safe Browsing (Closed)
Patch Set: Report net_error codes to UMA Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/safe_browsing/csd.proto
diff --git a/chrome/common/safe_browsing/csd.proto b/chrome/common/safe_browsing/csd.proto
index c98152aae1a51efa35eeddf5e3f7a75f5d311e0b..349b74f2cedaf52c359f7d73e59090db122a3e68 100644
--- a/chrome/common/safe_browsing/csd.proto
+++ b/chrome/common/safe_browsing/csd.proto
@@ -835,3 +835,29 @@ message ClientSafeBrowsingReportRequest {
// DANGEROUS_DOWNLOAD_BY_API.
optional bytes token = 15;
}
+
+// Canonical representation of raster image data.
+message ImageData {
+ // Image bitmap encoded as PNG, after downscaling to <= 512x512.
+ optional bytes png_data = 1;
+
+ message Dimensions {
+ optional int32 width = 1;
+ optional int32 height = 2;
+ }
+
+ optional Dimensions dimensions = 2;
+ optional Dimensions original_dimensions = 3; // iff downscaled
+}
+
+// Reporting protobuf for an image served as part of a browser notification.
+// There is no response (an empty body) to this request.
+message NotificationImageReportRequest {
+ optional string notification_origin = 1; // Src-origin of the notification.
+ optional ImageData image = 2; // The bitmap of the image.
+
+ // Note that the image URL is deliberately omitted as it would be untrusted,
+ // since the notification image fetch may be intercepted by a Service Worker
+ // (even if the image URL is cross-origin). Otherwise a website could mislead
+ // Safe Browsing into associating phishing image bitmaps with safe image URLs.
+}
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698