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

Unified Diff: chrome/common/safe_browsing/csd.proto

Issue 2644133005: Include all server redirects in referrer chain (Closed)
Patch Set: proto change and adding two histograms Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/safe_browsing/csd.proto
diff --git a/chrome/common/safe_browsing/csd.proto b/chrome/common/safe_browsing/csd.proto
index cfdb94e7de1f283884e8855b4e8bffb1c0724023..eadae65b15206beecaf6c77bc14357a883b41945 100644
--- a/chrome/common/safe_browsing/csd.proto
+++ b/chrome/common/safe_browsing/csd.proto
@@ -386,6 +386,9 @@ message ClientDownloadRequest {
// order, i.e. download url comes first in this list, and landing referrer
// comes last.
repeated ReferrerChainEntry referrer_chain = 36;
+
+ // Whether DownloadAttribution Finch experiment is enabled for this ping.
+ optional bool download_attribution_finch_enabled = 39;
}
message ReferrerChainEntry {
@@ -394,14 +397,24 @@ message ReferrerChainEntry {
LANDING_PAGE = 2;
LANDING_REFERRER = 3;
CLIENT_REDIRECT = 4;
- SERVER_REDIRECT = 5;
+ SERVER_REDIRECT = 5; // Deprecated
Nathan Parker 2017/01/27 22:53:38 How about renaming to _DEPRECATED_SERVER_REDIRECT,
Jialiu Lin 2017/01/27 23:25:07 Done.
+ }
+
+ message ServerRedirect {
+ // [required] server redirect url
+ optional string url = 1;
+
+ // Additional fields for future expansion.
}
// [required] The url of this Entry.
optional string url = 1;
+ // Only set if it is different from |url|.
+ optional string main_frame_url = 9;
+
// Type of URLs, such as download url, download referrer, etc.
- optional URLType type = 2;
+ optional URLType type = 2 [default = CLIENT_REDIRECT];
Nathan Parker 2017/01/27 22:53:38 Why is this the default?
Jialiu Lin 2017/01/27 23:25:07 If a navigation is not pointing at these key urls
// IP addresses corresponding to this host.
repeated string ip_addresses = 3;
@@ -410,13 +423,19 @@ message ReferrerChainEntry {
optional string referrer_url = 4;
// Main frame URL of referrer.
+ // Only set if it is different from |referrer_url|.
optional string referrer_main_frame_url = 5;
// If this URL loads in a different tab/frame from previous one.
optional bool is_retargeting = 6;
optional double navigation_time_msec = 7;
-} // End of URLChainEntry
+
+ // Set only if server redirects happened in navigation.
+ // The first entry in |server_redirect_chain| should be the original request
+ // url, and the last entry should be the same as |url|.
+ repeated ServerRedirect server_redirect_chain = 8;
+} // End of ReferrerChainEntry
message ClientDownloadResponse {
enum Verdict {

Powered by Google App Engine
This is Rietveld 408576698