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

Side by Side Diff: net/reporting/reporting_header_parser.h

Issue 2900553004: Reporting: Add histograms. (Closed)
Patch Set: rebase Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « net/reporting/reporting_garbage_collector.cc ('k') | net/reporting/reporting_header_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_REPORTING_REPORTING_HEADER_PARSER_H_ 5 #ifndef NET_REPORTING_REPORTING_HEADER_PARSER_H_
6 #define NET_REPORTING_REPORTING_HEADER_PARSER_H_ 6 #define NET_REPORTING_REPORTING_HEADER_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace net { 15 namespace net {
16 16
17 class ReportingContext; 17 class ReportingContext;
18 18
19 class NET_EXPORT ReportingHeaderParser { 19 class NET_EXPORT ReportingHeaderParser {
20 public: 20 public:
21 static void RecordHeaderDiscardedForNoReportingService();
22 static void RecordHeaderDiscardedForInvalidSSLInfo();
23 static void RecordHeaderDiscardedForCertStatusError();
24
21 static void ParseHeader(ReportingContext* context, 25 static void ParseHeader(ReportingContext* context,
22 const GURL& url, 26 const GURL& url,
23 const std::string& json_value); 27 const std::string& json_value);
24 28
25 private: 29 private:
26 DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingHeaderParser); 30 DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingHeaderParser);
27 }; 31 };
28 32
29 } // namespace net 33 } // namespace net
30 34
31 #endif // NET_REPORTING_REPORTING_HEADER_PARSER_H_ 35 #endif // NET_REPORTING_REPORTING_HEADER_PARSER_H_
OLDNEW
« no previous file with comments | « net/reporting/reporting_garbage_collector.cc ('k') | net/reporting/reporting_header_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698