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

Unified Diff: components/certificate_reporting/error_report.h

Issue 2448943004: Add experimental feature info to certificate reports (Closed)
Patch Set: Created 4 years, 2 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: components/certificate_reporting/error_report.h
diff --git a/components/certificate_reporting/error_report.h b/components/certificate_reporting/error_report.h
index 0200dcd4304be9f3230a80a0e4d327c02f46f02d..3ac3cbec2862a2da1419e19f0b311a7ec333f5a5 100644
--- a/components/certificate_reporting/error_report.h
+++ b/components/certificate_reporting/error_report.h
@@ -8,6 +8,9 @@
#include <memory>
#include <string>
+namespace base {
+struct Feature;
+} // namespace base
namespace net {
class SSLInfo;
@@ -64,6 +67,11 @@ class ErrorReport {
// Gets the hostname to which this report corresponds.
const std::string& hostname() const;
+ // Populates the report with information about the given |feature|,
+ // including whether it is enabled or disabled and its experiment
+ // parameters.
+ void AddFeature(const base::Feature& feature);
+
private:
std::unique_ptr<CertLoggerRequest> cert_report_;
};

Powered by Google App Engine
This is Rietveld 408576698