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

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

Issue 2747313002: PasswordProtectionService verdict cache management (Closed)
Patch Set: Cache verdict based on hostname 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 match target URL with cache expression up to both of their
252 // last /'s.
253 //
254 // Examples:
255 // If set true, a cache_expression "foo.com/bar" will match
256 // "foo.com/bar",
257 // "foo.com/bar/bar.cgi",
258 // "foo.com/bar/login.html?param=val",
259 // but will NOT match
260 // "foo.com",
261 // "foo.com/abc/",
262 // "foo.com/bar/abc/edf.cgi"
263 optional bool cache_expression_exact_match = 4;
250 } 264 }
251 265
252 message ClientMalwareResponse { 266 message ClientMalwareResponse {
253 required bool blacklist = 1; 267 required bool blacklist = 1;
254 // The confirmed blacklisted bad IP and its url, which will be shown in 268 // The confirmed blacklisted bad IP and its url, which will be shown in
255 // malware warning, if the blacklist verdict is true. 269 // malware warning, if the blacklist verdict is true.
256 // This IP string could be either in IPv4 or IPv6 format, which is the same 270 // This IP string could be either in IPv4 or IPv6 format, which is the same
257 // as the ones client sent to server. 271 // as the ones client sent to server.
258 optional string bad_ip = 2; 272 optional string bad_ip = 2;
259 optional string bad_url = 3; 273 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. 1021 // There is no response (an empty body) to this request.
1008 message NotificationImageReportRequest { 1022 message NotificationImageReportRequest {
1009 optional string notification_origin = 1; // Src-origin of the notification. 1023 optional string notification_origin = 1; // Src-origin of the notification.
1010 optional ImageData image = 2; // The bitmap of the image. 1024 optional ImageData image = 2; // The bitmap of the image.
1011 1025
1012 // Note that the image URL is deliberately omitted as it would be untrusted, 1026 // 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 1027 // 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 1028 // (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. 1029 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1016 } 1030 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698