Chromium Code Reviews| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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/abc/", | |
| 261 // "foo.com/bar/abc/edf.cgi" | |
|
vakh (use Gerrit instead)
2017/03/20 18:36:00
Can you also make it explicit that it won't match
Jialiu Lin
2017/03/20 19:05:54
Sure. Done.
| |
| 262 optional bool cache_expression_exact_match = 4; | |
| 250 } | 263 } |
| 251 | 264 |
| 252 message ClientMalwareResponse { | 265 message ClientMalwareResponse { |
| 253 required bool blacklist = 1; | 266 required bool blacklist = 1; |
| 254 // The confirmed blacklisted bad IP and its url, which will be shown in | 267 // The confirmed blacklisted bad IP and its url, which will be shown in |
| 255 // malware warning, if the blacklist verdict is true. | 268 // malware warning, if the blacklist verdict is true. |
| 256 // This IP string could be either in IPv4 or IPv6 format, which is the same | 269 // This IP string could be either in IPv4 or IPv6 format, which is the same |
| 257 // as the ones client sent to server. | 270 // as the ones client sent to server. |
| 258 optional string bad_ip = 2; | 271 optional string bad_ip = 2; |
| 259 optional string bad_url = 3; | 272 optional string bad_url = 3; |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1007 // There is no response (an empty body) to this request. | 1020 // There is no response (an empty body) to this request. |
| 1008 message NotificationImageReportRequest { | 1021 message NotificationImageReportRequest { |
| 1009 optional string notification_origin = 1; // Src-origin of the notification. | 1022 optional string notification_origin = 1; // Src-origin of the notification. |
| 1010 optional ImageData image = 2; // The bitmap of the image. | 1023 optional ImageData image = 2; // The bitmap of the image. |
| 1011 | 1024 |
| 1012 // Note that the image URL is deliberately omitted as it would be untrusted, | 1025 // 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 | 1026 // 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 | 1027 // (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. | 1028 // Safe Browsing into associating phishing image bitmaps with safe image URLs. |
| 1016 } | 1029 } |
| OLD | NEW |