OLD | NEW |
---|---|
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 Loading... | |
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; | |
jkarlin
2015/12/09 11:46:22
This should have been caught by a test. Need moar
Deprecated (see juliatuttle)
2015/12/10 17:04:23
Done.
| |
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_ |
OLD | NEW |