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

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

Issue 578553004: Remove the "snionly" concept from the HSTS preload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 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
« no previous file with comments | « no previous file | chrome/browser/net/chrome_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 CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
6 #define CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_ 6 #define CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 virtual ~ChromeFraudulentCertificateReporter(); 27 virtual ~ChromeFraudulentCertificateReporter();
28 28
29 // Allows users of this class to override this and set their own URLRequest 29 // Allows users of this class to override this and set their own URLRequest
30 // type. Used by SendReport. 30 // type. Used by SendReport.
31 virtual scoped_ptr<net::URLRequest> CreateURLRequest( 31 virtual scoped_ptr<net::URLRequest> CreateURLRequest(
32 net::URLRequestContext* context); 32 net::URLRequestContext* context);
33 33
34 // net::FraudulentCertificateReporter 34 // net::FraudulentCertificateReporter
35 virtual void SendReport(const std::string& hostname, 35 virtual void SendReport(const std::string& hostname,
36 const net::SSLInfo& ssl_info, 36 const net::SSLInfo& ssl_info) OVERRIDE;
37 bool sni_available) OVERRIDE;
38 37
39 // net::URLRequest::Delegate 38 // net::URLRequest::Delegate
40 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 39 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
41 virtual void OnReadCompleted(net::URLRequest* request, 40 virtual void OnReadCompleted(net::URLRequest* request,
42 int bytes_read) OVERRIDE; 41 int bytes_read) OVERRIDE;
43 42
44 protected: 43 protected:
45 net::URLRequestContext* const request_context_; 44 net::URLRequestContext* const request_context_;
46 45
47 private: 46 private:
48 // Performs post-report cleanup. 47 // Performs post-report cleanup.
49 void RequestComplete(net::URLRequest* request); 48 void RequestComplete(net::URLRequest* request);
50 49
51 const GURL upload_url_; 50 const GURL upload_url_;
52 // Owns the contained requests. 51 // Owns the contained requests.
53 std::set<net::URLRequest*> inflight_requests_; 52 std::set<net::URLRequest*> inflight_requests_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(ChromeFraudulentCertificateReporter); 54 DISALLOW_COPY_AND_ASSIGN(ChromeFraudulentCertificateReporter);
56 }; 55 };
57 56
58 } // namespace chrome_browser_net 57 } // namespace chrome_browser_net
59 58
60 #endif // CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_ 59 #endif // CHROME_BROWSER_NET_CHROME_FRAUDULENT_CERTIFICATE_REPORTER_H_
61 60
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_fraudulent_certificate_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698