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

Side by Side Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter.h

Issue 1117173004: Split cert reporter class into report building/serializing and sending (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move //c/b/ssl classes into global namespace Created 5 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
6 #define CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
7
8 #include <set>
9 #include <string>
10
11 #include "base/memory/scoped_ptr.h"
12 #include "net/url_request/fraudulent_certificate_reporter.h"
13
14 namespace net {
15 class URLRequestContext;
16 }
17
18 namespace chrome_browser_net {
19
20 class CertificateErrorReporter;
21
22 class ChromeFraudulentCertificateReporter
23 : public net::FraudulentCertificateReporter {
24 public:
25 explicit ChromeFraudulentCertificateReporter(
26 net::URLRequestContext* request_context);
27
28 // Useful for tests to use a mock reporter.
29 explicit ChromeFraudulentCertificateReporter(
30 scoped_ptr<CertificateErrorReporter> certificate_reporter);
31
32 ~ChromeFraudulentCertificateReporter() override;
33
34 // net::FraudulentCertificateReporter
35 void SendReport(const std::string& hostname,
36 const net::SSLInfo& ssl_info) override;
37
38 private:
39 scoped_ptr<CertificateErrorReporter> certificate_reporter_;
40
41 DISALLOW_COPY_AND_ASSIGN(ChromeFraudulentCertificateReporter);
42 };
43
44 } // namespace chrome_browser_net
45
46 #endif // CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698