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

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

Issue 2856033002: Add finch control of user population in low reputation requests (Closed)
Patch Set: rebase Created 3 years, 7 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 16 matching lines...) Expand all
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 groups this user belongs to (if any). Active group is
42 // defined by finch trial name and group name. Trial name and group name are
43 // concatenated with separator "|", e.g. "PingOnlyTrial|DefaultGroup".
44 repeated string finch_active_groups = 4;
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/safe_browsing/password_protection/password_protection_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698