| OLD | NEW | 
|   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_ | 
| OLD | NEW |