| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef NET_REPORTING_REPORTING_HEADER_PARSER_H_ |
| #define NET_REPORTING_REPORTING_HEADER_PARSER_H_ |
| #include "net/base/net_export.h" |
| class NET_EXPORT ReportingHeaderParser { |
| static void RecordHeaderDiscardedForNoReportingService(); |
| static void RecordHeaderDiscardedForInvalidSSLInfo(); |
| static void RecordHeaderDiscardedForCertStatusError(); |
| static void RecordHeaderDiscardedForJsonInvalid(); |
| static void RecordHeaderDiscardedForJsonTooBig(); |
| static void ParseHeader(ReportingContext* context, |
| std::unique_ptr<base::Value> value); |
| DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingHeaderParser); |
| #endif // NET_REPORTING_REPORTING_HEADER_PARSER_H_ |