| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 // Only if verdict != SAFE. Localized based on request.locale. | 461 // Only if verdict != SAFE. Localized based on request.locale. |
| 462 optional string description = 1; | 462 optional string description = 1; |
| 463 | 463 |
| 464 // A URL to get more information about this warning, if available. | 464 // A URL to get more information about this warning, if available. |
| 465 optional string url = 2; | 465 optional string url = 2; |
| 466 } | 466 } |
| 467 optional MoreInfo more_info = 2; | 467 optional MoreInfo more_info = 2; |
| 468 | 468 |
| 469 // An arbitrary token that should be sent along for further server requests. | 469 // An arbitrary token that should be sent along for further server requests. |
| 470 optional bytes token = 3; | 470 optional bytes token = 3; |
| 471 |
| 472 // Whether the server requests that this binary be uploaded. |
| 473 optional bool upload = 5; |
| 471 } | 474 } |
| 472 | 475 |
| 473 // The following protocol buffer holds the feedback report gathered | 476 // The following protocol buffer holds the feedback report gathered |
| 474 // from the user regarding the download. | 477 // from the user regarding the download. |
| 475 message ClientDownloadReport { | 478 message ClientDownloadReport { |
| 476 // The information of user who provided the feedback. | 479 // The information of user who provided the feedback. |
| 477 // This is going to be useful for handling appeals. | 480 // This is going to be useful for handling appeals. |
| 478 message UserInformation { | 481 message UserInformation { |
| 479 optional string email = 1; | 482 optional string email = 1; |
| 480 } | 483 } |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 // There is no response (an empty body) to this request. | 910 // There is no response (an empty body) to this request. |
| 908 message NotificationImageReportRequest { | 911 message NotificationImageReportRequest { |
| 909 optional string notification_origin = 1; // Src-origin of the notification. | 912 optional string notification_origin = 1; // Src-origin of the notification. |
| 910 optional ImageData image = 2; // The bitmap of the image. | 913 optional ImageData image = 2; // The bitmap of the image. |
| 911 | 914 |
| 912 // Note that the image URL is deliberately omitted as it would be untrusted, | 915 // Note that the image URL is deliberately omitted as it would be untrusted, |
| 913 // since the notification image fetch may be intercepted by a Service Worker | 916 // since the notification image fetch may be intercepted by a Service Worker |
| 914 // (even if the image URL is cross-origin). Otherwise a website could mislead | 917 // (even if the image URL is cross-origin). Otherwise a website could mislead |
| 915 // Safe Browsing into associating phishing image bitmaps with safe image URLs. | 918 // Safe Browsing into associating phishing image bitmaps with safe image URLs. |
| 916 } | 919 } |
| OLD | NEW |