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

Side by Side Diff: components/domain_reliability/beacon.h

Issue 1497803004: Domain Reliability: Add sample_rate field to Beacon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more sample rate tests Created 5 years 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 | « no previous file | components/domain_reliability/beacon.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int http_response_code; 61 int http_response_code;
62 // Elapsed time between starting and completing the request. 62 // Elapsed time between starting and completing the request.
63 base::TimeDelta elapsed; 63 base::TimeDelta elapsed;
64 // Start time of the request. Encoded as the request age in the final JSON. 64 // Start time of the request. Encoded as the request age in the final JSON.
65 base::TimeTicks start_time; 65 base::TimeTicks start_time;
66 // Length of the chain of Domain Reliability uploads leading to this report. 66 // Length of the chain of Domain Reliability uploads leading to this report.
67 // Zero if the request was not caused by an upload, one if the request was 67 // Zero if the request was not caused by an upload, one if the request was
68 // caused by an upload that itself contained no beacons caused by uploads, 68 // caused by an upload that itself contained no beacons caused by uploads,
69 // et cetera. 69 // et cetera.
70 int upload_depth; 70 int upload_depth;
71 // The probability that this request had of being reported ("sample rate").
72 double sample_rate;
71 73
72 // Okay to copy and assign. 74 // Okay to copy and assign.
73 }; 75 };
74 76
75 } // namespace domain_reliability 77 } // namespace domain_reliability
76 78
77 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 79 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
OLDNEW
« no previous file with comments | « no previous file | components/domain_reliability/beacon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698