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

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

Issue 2777853005: Generalize the usage of referrer chain (Closed)
Patch Set: address lpz's comments Created 3 years, 8 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // order, i.e. download url comes first in this list, and landing referrer 499 // order, i.e. download url comes first in this list, and landing referrer
500 // comes last. 500 // comes last.
501 repeated ReferrerChainEntry referrer_chain = 36; 501 repeated ReferrerChainEntry referrer_chain = 36;
502 502
503 // Whether DownloadAttribution Finch experiment is enabled for this ping. 503 // Whether DownloadAttribution Finch experiment is enabled for this ping.
504 optional bool download_attribution_finch_enabled = 39; 504 optional bool download_attribution_finch_enabled = 39;
505 } 505 }
506 506
507 message ReferrerChainEntry { 507 message ReferrerChainEntry {
508 enum URLType { 508 enum URLType {
509 DOWNLOAD_URL = 1; 509 // URL of safe browsing events that are at the end of the referrer chain.
510 // e.g. URL of a download, URL of a low reputation login page, etc.
511 EVENT_URL = 1; // e.g.
512
513 // Landing page is the page user directly interacts with to trigger the
514 // above event, e.g. the page where user clicks a download button.
510 LANDING_PAGE = 2; 515 LANDING_PAGE = 2;
516
517 // Landing referrer is the one user directly interacts with right before
518 // navigating to the landing page.
511 LANDING_REFERRER = 3; 519 LANDING_REFERRER = 3;
520
521 // Client redirect refers to committed navigation between landing page and
522 // the targeted event, or between landing referrer page and landing page.
523 // Client redirect is not triggered by user gesture.
512 CLIENT_REDIRECT = 4; 524 CLIENT_REDIRECT = 4;
525
513 DEPRECATED_SERVER_REDIRECT = 5; // Deprecated 526 DEPRECATED_SERVER_REDIRECT = 5; // Deprecated
514 } 527 }
515 528
516 message ServerRedirect { 529 message ServerRedirect {
517 // [required] server redirect url 530 // [required] server redirect url
518 optional string url = 1; 531 optional string url = 1;
519 532
520 // Additional fields for future expansion. 533 // Additional fields for future expansion.
521 } 534 }
522 535
523 // [required] The url of this Entry. 536 // [required] The url of this Entry.
524 optional string url = 1; 537 optional string url = 1;
525 538
526 // Only set if it is different from |url|. 539 // Only set if it is different from |url|.
527 optional string main_frame_url = 9; 540 optional string main_frame_url = 9;
528 541
529 // Type of URLs, such as download url, download referrer, etc. 542 // Type of URLs, such as event url, landing page, etc.
530 optional URLType type = 2 [default = CLIENT_REDIRECT]; 543 optional URLType type = 2 [default = CLIENT_REDIRECT];
531 544
532 // IP addresses corresponding to this host. 545 // IP addresses corresponding to this host.
533 repeated string ip_addresses = 3; 546 repeated string ip_addresses = 3;
534 547
535 // Referrer url of this entry. 548 // Referrer url of this entry.
536 optional string referrer_url = 4; 549 optional string referrer_url = 4;
537 550
538 // Main frame URL of referrer. 551 // Main frame URL of referrer.
539 // Only set if it is different from |referrer_url|. 552 // Only set if it is different from |referrer_url|.
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 // There is no response (an empty body) to this request. 1034 // There is no response (an empty body) to this request.
1022 message NotificationImageReportRequest { 1035 message NotificationImageReportRequest {
1023 optional string notification_origin = 1; // Src-origin of the notification. 1036 optional string notification_origin = 1; // Src-origin of the notification.
1024 optional ImageData image = 2; // The bitmap of the image. 1037 optional ImageData image = 2; // The bitmap of the image.
1025 1038
1026 // Note that the image URL is deliberately omitted as it would be untrusted, 1039 // Note that the image URL is deliberately omitted as it would be untrusted,
1027 // since the notification image fetch may be intercepted by a Service Worker 1040 // since the notification image fetch may be intercepted by a Service Worker
1028 // (even if the image URL is cross-origin). Otherwise a website could mislead 1041 // (even if the image URL is cross-origin). Otherwise a website could mislead
1029 // Safe Browsing into associating phishing image bitmaps with safe image URLs. 1042 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1030 } 1043 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698