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_; |
}; |