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

Side by Side Diff: net/url_request/fraudulent_certificate_reporter.h

Issue 8342019: Don't need to export an abstract interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove net_export.h. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/net.gyp ('k') | net/url_request/fraudulent_certificate_reporter.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ 5 #ifndef NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
6 #define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ 6 #define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h"
11
12 namespace net { 10 namespace net {
13 11
14 class SSLInfo; 12 class SSLInfo;
15 13
16 // FraudulentCertificateReporter is an interface for asynchronously 14 // FraudulentCertificateReporter is an interface for asynchronously
17 // reporting certificate chains that fail the certificate pinning 15 // reporting certificate chains that fail the certificate pinning
18 // check. 16 // check.
19 class NET_EXPORT FraudulentCertificateReporter { 17 class FraudulentCertificateReporter {
20 public: 18 public:
21 virtual ~FraudulentCertificateReporter(); 19 virtual ~FraudulentCertificateReporter() {}
22 20
23 // Sends a report to the report collection server containing the |ssl_info| 21 // Sends a report to the report collection server containing the |ssl_info|
24 // associated with a connection to |hostname|. If |sni_available| is true, 22 // associated with a connection to |hostname|. If |sni_available| is true,
25 // searches the SNI transport security metadata as well as the usual 23 // searches the SNI transport security metadata as well as the usual
26 // transport security metadata when determining policy for sending the report. 24 // transport security metadata when determining policy for sending the report.
27 virtual void SendReport(const std::string& hostname, 25 virtual void SendReport(const std::string& hostname,
28 const SSLInfo& ssl_info, 26 const SSLInfo& ssl_info,
29 bool sni_available) = 0; 27 bool sni_available) = 0;
30 }; 28 };
31 29
32 } // namespace net 30 } // namespace net
33 31
34 #endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ 32 #endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
35 33
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/fraudulent_certificate_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698