Index: components/domain_reliability/beacon.h |
diff --git a/components/domain_reliability/beacon.h b/components/domain_reliability/beacon.h |
index aba7bf9503b15b49e86d7c32a196d00b8c3c941e..28868f887dbddff1bdf87b1bad00b6491d231ccb 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; |
@@ -24,13 +26,14 @@ struct DOMAIN_RELIABILITY_EXPORT DomainReliabilityBeacon { |
// 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; |
+ scoped_ptr<base::Value> ToValue( |
+ base::TimeTicks upload_time, |
+ base::TimeTicks last_network_change_time, |
+ const GURL& collector_url, |
+ const ScopedVector<std::string>& path_prefixes) const; |
Randy Smith (Not in Mondays)
2015/10/29 22:36:10
nit, suggestion: Comment the argument requiremets?
Deprecated (see juliatuttle)
2015/11/02 23:19:30
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"). |