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

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

Issue 2777853005: Generalize the usage of referrer chain (Closed)
Patch Set: nit 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
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 EVENT_URL = 1;
lpz 2017/03/29 13:46:27 "Event" is a little vague, perhaps some comments o
Jialiu Lin 2017/03/29 20:40:00 Done.
510 LANDING_PAGE = 2; 510 LANDING_PAGE = 2;
511 LANDING_REFERRER = 3; 511 LANDING_REFERRER = 3;
512 CLIENT_REDIRECT = 4; 512 CLIENT_REDIRECT = 4;
513 DEPRECATED_SERVER_REDIRECT = 5; // Deprecated 513 DEPRECATED_SERVER_REDIRECT = 5; // Deprecated
514 } 514 }
515 515
516 message ServerRedirect { 516 message ServerRedirect {
517 // [required] server redirect url 517 // [required] server redirect url
518 optional string url = 1; 518 optional string url = 1;
519 519
520 // Additional fields for future expansion. 520 // Additional fields for future expansion.
521 } 521 }
522 522
523 // [required] The url of this Entry. 523 // [required] The url of this Entry.
524 optional string url = 1; 524 optional string url = 1;
525 525
526 // Only set if it is different from |url|. 526 // Only set if it is different from |url|.
527 optional string main_frame_url = 9; 527 optional string main_frame_url = 9;
528 528
529 // Type of URLs, such as download url, download referrer, etc. 529 // Type of URLs, such as event url, landing page, etc.
530 optional URLType type = 2 [default = CLIENT_REDIRECT]; 530 optional URLType type = 2 [default = CLIENT_REDIRECT];
531 531
532 // IP addresses corresponding to this host. 532 // IP addresses corresponding to this host.
533 repeated string ip_addresses = 3; 533 repeated string ip_addresses = 3;
534 534
535 // Referrer url of this entry. 535 // Referrer url of this entry.
536 optional string referrer_url = 4; 536 optional string referrer_url = 4;
537 537
538 // Main frame URL of referrer. 538 // Main frame URL of referrer.
539 // Only set if it is different from |referrer_url|. 539 // 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. 1021 // There is no response (an empty body) to this request.
1022 message NotificationImageReportRequest { 1022 message NotificationImageReportRequest {
1023 optional string notification_origin = 1; // Src-origin of the notification. 1023 optional string notification_origin = 1; // Src-origin of the notification.
1024 optional ImageData image = 2; // The bitmap of the image. 1024 optional ImageData image = 2; // The bitmap of the image.
1025 1025
1026 // Note that the image URL is deliberately omitted as it would be untrusted, 1026 // 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 1027 // 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 1028 // (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. 1029 // Safe Browsing into associating phishing image bitmaps with safe image URLs.
1030 } 1030 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698