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

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

Issue 2817533004: Improve PasswordProtectionService and PasswordProtectionRequest (Closed)
Patch Set: address nparker's comments Created 3 years, 8 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // www.google.com/foo/bar?param=val -> google.com 243 // www.google.com/foo/bar?param=val -> google.com
244 // www.geocities.com/foo/bar.html -> geocities.com/foo 244 // www.geocities.com/foo/bar.html -> geocities.com/foo
245 // adwords.blogspot.com/index.html -> adwords.blogspot.com 245 // adwords.blogspot.com/index.html -> adwords.blogspot.com
246 // 246 //
247 // The pattern will always match the page_url of the request, and will be 247 // The pattern will always match the page_url of the request, and will be
248 // a substring of page_url. 248 // a substring of page_url.
249 optional string cache_expression = 3; 249 optional string cache_expression = 3;
250 250
251 // Deprecated. 251 // Deprecated.
252 optional bool DEPRECATED_cache_expression_exact_match = 4 [deprecated = true]; 252 optional bool DEPRECATED_cache_expression_exact_match = 4 [deprecated = true];
253
254 // A token which is consistent in the response and post-warning actions.
lpz 2017/04/18 14:43:27 So this field is not used in chrome code yet, righ
Jialiu Lin 2017/04/18 20:38:03 This field is going to be used in the post-inciden
255 optional bytes verdict_token = 5;
253 } 256 }
254 257
255 message ClientMalwareResponse { 258 message ClientMalwareResponse {
256 required bool blacklist = 1; 259 required bool blacklist = 1;
257 // The confirmed blacklisted bad IP and its url, which will be shown in 260 // The confirmed blacklisted bad IP and its url, which will be shown in
258 // malware warning, if the blacklist verdict is true. 261 // malware warning, if the blacklist verdict is true.
259 // This IP string could be either in IPv4 or IPv6 format, which is the same 262 // This IP string could be either in IPv4 or IPv6 format, which is the same
260 // as the ones client sent to server. 263 // as the ones client sent to server.
261 optional string bad_ip = 2; 264 optional string bad_ip = 2;
262 optional string bad_url = 3; 265 optional string bad_url = 3;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 // There is no response (an empty body) to this request. 1026 // There is no response (an empty body) to this request.
1024 message NotificationImageReportRequest { 1027 message NotificationImageReportRequest {
1025 optional string notification_origin = 1; // Src-origin of the notification. 1028 optional string notification_origin = 1; // Src-origin of the notification.
1026 optional ImageData image = 2; // The bitmap of the image. 1029 optional ImageData image = 2; // The bitmap of the image.
1027 1030
1028 // Note that the image URL is deliberately omitted as it would be untrusted, 1031 // Note that the image URL is deliberately omitted as it would be untrusted,
1029 // since the notification image fetch may be intercepted by a Service Worker 1032 // since the notification image fetch may be intercepted by a Service Worker
1030 // (even if the image URL is cross-origin). Otherwise a website could mislead 1033 // (even if the image URL is cross-origin). Otherwise a website could mislead
1031 // Safe Browsing into associating phishing image bitmaps with safe image URLs. 1034 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1032 } 1035 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698