Index: components/domain_reliability/beacon.h |
diff --git a/components/domain_reliability/beacon.h b/components/domain_reliability/beacon.h |
index aba7bf9503b15b49e86d7c32a196d00b8c3c941e..a184236ac1469591af56f913aea18ad0491b37df 100644 |
--- a/components/domain_reliability/beacon.h |
+++ b/components/domain_reliability/beacon.h |
@@ -7,8 +7,10 @@ |
#include <string> |
+#include "base/memory/scoped_vector.h" |
#include "base/time/time.h" |
#include "components/domain_reliability/domain_reliability_export.h" |
+#include "url/gurl.h" |
namespace base { |
class Value; |
@@ -22,15 +24,25 @@ struct DOMAIN_RELIABILITY_EXPORT DomainReliabilityBeacon { |
DomainReliabilityBeacon(); |
~DomainReliabilityBeacon(); |
+ struct DOMAIN_RELIABILITY_EXPORT ReportParams { |
davidben
2015/10/20 23:35:54
Does this actually buy you anything over a four-ar
Deprecated (see juliatuttle)
2015/10/26 19:08:41
Done.
|
+ public: |
+ ReportParams(base::TimeTicks upload_time, |
+ base::TimeTicks last_network_change_time, |
+ const GURL& collector_url, |
+ const ScopedVector<std::string>& path_prefixes); |
+ |
+ base::TimeTicks upload_time; |
+ base::TimeTicks last_network_change_time; |
+ const GURL& collector_url; |
+ const ScopedVector<std::string>& path_prefixes; |
+ }; |
+ |
// Converts the Beacon to JSON format for uploading. Calculates the age |
// relative to an upload time of |upload_time|. |
- base::Value* ToValue(base::TimeTicks upload_time, |
- base::TimeTicks last_network_change_time) const; |
+ base::Value* ToValue(const ReportParams& report_params) const; |
davidben
2015/10/20 23:35:54
Existing code, but this would probably be better r
Deprecated (see juliatuttle)
2015/10/26 19:08:41
Done.
|
// The URL that the beacon is reporting on, if included. |
- std::string url; |
- // The domain that the beacon is reporting on, if included. |
- std::string domain; |
+ GURL url; |
// The resource name that the beacon is reporting on, if included. |
std::string resource; |
// Status string (e.g. "ok", "dns.nxdomain", "http.403"). |