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

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

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: 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
« chrome/renderer/BUILD.gn ('K') | « components/safe_browsing/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
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 } 37 }
38 38
39
40 message ClientPhishingRequest { 39 message ClientPhishingRequest {
41 // URL that the client visited. The CGI parameters are stripped by the 40 // URL that the client visited. The CGI parameters are stripped by the
42 // client. 41 // client.
43 optional string url = 1; 42 optional string url = 1;
44 43
45 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is 44 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is
46 // canonicalized, converted to a suffix-prefix expression and broadened 45 // canonicalized, converted to a suffix-prefix expression and broadened
47 // (www prefix is removed and everything past the last '/' is stripped). 46 // (www prefix is removed and everything past the last '/' is stripped).
48 // 47 //
49 // Marked OBSOLETE because the URL is sent for all users, making the hash 48 // Marked OBSOLETE because the URL is sent for all users, making the hash
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 363 }
365 364
366 repeated ArchivedBinary archived_binary = 22; 365 repeated ArchivedBinary archived_binary = 22;
367 366
368 // Population that the reporting user is part of. 367 // Population that the reporting user is part of.
369 optional ChromeUserPopulation population = 24; 368 optional ChromeUserPopulation population = 24;
370 369
371 // True if the .zip or DMG, etc, was 100% successfully unpacked. 370 // True if the .zip or DMG, etc, was 100% successfully unpacked.
372 optional bool archive_valid = 26; 371 optional bool archive_valid = 26;
373 372
374 // True if this ClientDownloadRequest is from a whitelisted domain. 373 // True if this ClientDownloadRequest is from a whitelisted domain.
375 optional bool skipped_url_whitelist = 28; 374 optional bool skipped_url_whitelist = 28;
376 375
377 // True if this ClientDownloadRequest contains a whitelisted certificate. 376 // True if this ClientDownloadRequest contains a whitelisted certificate.
378 optional bool skipped_certificate_whitelist = 31; 377 optional bool skipped_certificate_whitelist = 31;
379 378
380 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. 379 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype.
381 // Each element in this collection indicates an alternate extension including 380 // Each element in this collection indicates an alternate extension including
382 // the leading extension separator. 381 // the leading extension separator.
383 repeated string alternate_extensions = 35; 382 repeated string alternate_extensions = 35;
384 383
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 470
472 // Whether the server requests that this binary be uploaded. 471 // Whether the server requests that this binary be uploaded.
473 optional bool upload = 5; 472 optional bool upload = 5;
474 } 473 }
475 474
476 // The following protocol buffer holds the feedback report gathered 475 // The following protocol buffer holds the feedback report gathered
477 // from the user regarding the download. 476 // from the user regarding the download.
478 message ClientDownloadReport { 477 message ClientDownloadReport {
479 // The information of user who provided the feedback. 478 // The information of user who provided the feedback.
480 // This is going to be useful for handling appeals. 479 // This is going to be useful for handling appeals.
481 message UserInformation { 480 message UserInformation { optional string email = 1; }
482 optional string email = 1;
483 }
484 481
485 enum Reason { 482 enum Reason {
486 SHARE = 0; 483 SHARE = 0;
487 FALSE_POSITIVE = 1; 484 FALSE_POSITIVE = 1;
488 APPEAL = 2; 485 APPEAL = 2;
489 } 486 }
490 487
491 // The type of feedback for this report. 488 // The type of feedback for this report.
492 optional Reason reason = 1; 489 optional Reason reason = 1;
493 490
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 // There is no response (an empty body) to this request. 907 // There is no response (an empty body) to this request.
911 message NotificationImageReportRequest { 908 message NotificationImageReportRequest {
912 optional string notification_origin = 1; // Src-origin of the notification. 909 optional string notification_origin = 1; // Src-origin of the notification.
913 optional ImageData image = 2; // The bitmap of the image. 910 optional ImageData image = 2; // The bitmap of the image.
914 911
915 // Note that the image URL is deliberately omitted as it would be untrusted, 912 // Note that the image URL is deliberately omitted as it would be untrusted,
916 // since the notification image fetch may be intercepted by a Service Worker 913 // since the notification image fetch may be intercepted by a Service Worker
917 // (even if the image URL is cross-origin). Otherwise a website could mislead 914 // (even if the image URL is cross-origin). Otherwise a website could mislead
918 // Safe Browsing into associating phishing image bitmaps with safe image URLs. 915 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
919 } 916 }
OLDNEW
« chrome/renderer/BUILD.gn ('K') | « components/safe_browsing/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698