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 16 matching lines...) Expand all Loading... | |
| 27 | 27 |
| 28 // Protocol buffer describing the Chrome user population of the user reporting | 28 // Protocol buffer describing the Chrome user population of the user reporting |
| 29 // data. | 29 // data. |
| 30 message ChromeUserPopulation { | 30 message ChromeUserPopulation { |
| 31 enum UserPopulation { | 31 enum UserPopulation { |
| 32 UNKNOWN_USER_POPULATION = 0; | 32 UNKNOWN_USER_POPULATION = 0; |
| 33 SAFE_BROWSING = 1; | 33 SAFE_BROWSING = 1; |
| 34 EXTENDED_REPORTING = 2; | 34 EXTENDED_REPORTING = 2; |
| 35 } | 35 } |
| 36 optional UserPopulation user_population = 1; | 36 optional UserPopulation user_population = 1; |
| 37 | |
| 38 // If user enabled history sync. | |
| 39 optional bool is_history_sync_enabled = 2; | |
| 40 | |
| 41 // The finch active group this user belongs to (if any). Active group is | |
|
Nathan Parker
2017/05/05 20:58:22
We should at some point list the possible values o
Jialiu Lin
2017/05/05 22:19:32
ChromeUserPopulation message is not only used by P
| |
| 42 // defined by finch trial name and group name. Trial name and group name are | |
| 43 // concatenated with separator "|", e.g. "PingOnlyTrial|DefaultGroup". | |
| 44 optional string finch_active_group = 3; | |
|
Nathan Parker
2017/05/05 20:58:22
This seems useful, but then what is a concrete use
Jialiu Lin
2017/05/05 22:19:32
My current implementation does the later (how they
| |
| 37 } | 45 } |
| 38 | 46 |
| 39 message ClientPhishingRequest { | 47 message ClientPhishingRequest { |
| 40 // URL that the client visited. The CGI parameters are stripped by the | 48 // URL that the client visited. The CGI parameters are stripped by the |
| 41 // client. | 49 // client. |
| 42 optional string url = 1; | 50 optional string url = 1; |
| 43 | 51 |
| 44 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is | 52 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is |
| 45 // canonicalized, converted to a suffix-prefix expression and broadened | 53 // canonicalized, converted to a suffix-prefix expression and broadened |
| 46 // (www prefix is removed and everything past the last '/' is stripped). | 54 // (www prefix is removed and everything past the last '/' is stripped). |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 repeated string password_reused_original_origins = 1; | 215 repeated string password_reused_original_origins = 1; |
| 208 | 216 |
| 209 // The frame that the password reuse is detected. | 217 // The frame that the password reuse is detected. |
| 210 optional int32 frame_id = 2; | 218 optional int32 frame_id = 2; |
| 211 } | 219 } |
| 212 | 220 |
| 213 optional PasswordReuseEvent password_reuse_event = 4; | 221 optional PasswordReuseEvent password_reuse_event = 4; |
| 214 | 222 |
| 215 // The number of verdicts stored on the client. | 223 // The number of verdicts stored on the client. |
| 216 optional int32 stored_verdict_cnt = 5; | 224 optional int32 stored_verdict_cnt = 5; |
| 225 | |
| 226 // Chrome user population. | |
| 227 optional ChromeUserPopulation population = 6; | |
| 217 } | 228 } |
| 218 | 229 |
| 219 // The message is used for client response for login reputation requests. | 230 // The message is used for client response for login reputation requests. |
| 220 message LoginReputationClientResponse { | 231 message LoginReputationClientResponse { |
| 221 // Type of verdicts issued by the server. | 232 // Type of verdicts issued by the server. |
| 222 enum VerdictType { | 233 enum VerdictType { |
| 223 VERDICT_TYPE_UNSPECIFIED = 0; | 234 VERDICT_TYPE_UNSPECIFIED = 0; |
| 224 // No warning will be displayed. | 235 // No warning will be displayed. |
| 225 SAFE = 1; | 236 SAFE = 1; |
| 226 // The site has low reputation or low popularity. | 237 // The site has low reputation or low popularity. |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1024 // There is no response (an empty body) to this request. | 1035 // There is no response (an empty body) to this request. |
| 1025 message NotificationImageReportRequest { | 1036 message NotificationImageReportRequest { |
| 1026 optional string notification_origin = 1; // Src-origin of the notification. | 1037 optional string notification_origin = 1; // Src-origin of the notification. |
| 1027 optional ImageData image = 2; // The bitmap of the image. | 1038 optional ImageData image = 2; // The bitmap of the image. |
| 1028 | 1039 |
| 1029 // Note that the image URL is deliberately omitted as it would be untrusted, | 1040 // Note that the image URL is deliberately omitted as it would be untrusted, |
| 1030 // since the notification image fetch may be intercepted by a Service Worker | 1041 // since the notification image fetch may be intercepted by a Service Worker |
| 1031 // (even if the image URL is cross-origin). Otherwise a website could mislead | 1042 // (even if the image URL is cross-origin). Otherwise a website could mislead |
| 1032 // Safe Browsing into associating phishing image bitmaps with safe image URLs. | 1043 // Safe Browsing into associating phishing image bitmaps with safe image URLs. |
| 1033 } | 1044 } |
| OLD | NEW |