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

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

Issue 2747313002: PasswordProtectionService verdict cache management (Closed)
Patch Set: nit Created 3 years, 9 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // hosting sites (e.g., geocities.com), we further divide the domains. 240 // hosting sites (e.g., geocities.com), we further divide the domains.
241 // 241 //
242 // Examples: 242 // Examples:
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
251 // If set true, we do not match a url's path-prefix with the cache_expression.
252 //
253 // Examples:
254 // If set true, a cache_expression "dropbox.com" will match
255 // "dropbox.com",
256 // "dropbox.com/",
257 // "dropbox.com/login.html?param=val",
258 // "test.dropbox.com/"
259 // but will NOT match
260 // "dropbox.com/abc/"
261 optional bool cache_expression_exact_match = 4;
Nathan Parker 2017/03/20 15:55:35 This isn't really "exact match," since we're ignor
Jialiu Lin 2017/03/20 18:02:39 Ah, I copied this change from cl/150491510. I beli
250 } 262 }
251 263
252 message ClientMalwareResponse { 264 message ClientMalwareResponse {
253 required bool blacklist = 1; 265 required bool blacklist = 1;
254 // The confirmed blacklisted bad IP and its url, which will be shown in 266 // The confirmed blacklisted bad IP and its url, which will be shown in
255 // malware warning, if the blacklist verdict is true. 267 // malware warning, if the blacklist verdict is true.
256 // This IP string could be either in IPv4 or IPv6 format, which is the same 268 // This IP string could be either in IPv4 or IPv6 format, which is the same
257 // as the ones client sent to server. 269 // as the ones client sent to server.
258 optional string bad_ip = 2; 270 optional string bad_ip = 2;
259 optional string bad_url = 3; 271 optional string bad_url = 3;
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 // There is no response (an empty body) to this request. 1019 // There is no response (an empty body) to this request.
1008 message NotificationImageReportRequest { 1020 message NotificationImageReportRequest {
1009 optional string notification_origin = 1; // Src-origin of the notification. 1021 optional string notification_origin = 1; // Src-origin of the notification.
1010 optional ImageData image = 2; // The bitmap of the image. 1022 optional ImageData image = 2; // The bitmap of the image.
1011 1023
1012 // Note that the image URL is deliberately omitted as it would be untrusted, 1024 // Note that the image URL is deliberately omitted as it would be untrusted,
1013 // since the notification image fetch may be intercepted by a Service Worker 1025 // since the notification image fetch may be intercepted by a Service Worker
1014 // (even if the image URL is cross-origin). Otherwise a website could mislead 1026 // (even if the image URL is cross-origin). Otherwise a website could mislead
1015 // Safe Browsing into associating phishing image bitmaps with safe image URLs. 1027 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1016 } 1028 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698