OLD | NEW |
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_BASE_HTTPS_PROBER_H_ | 5 #ifndef NET_BASE_HTTPS_PROBER_H_ |
6 #define NET_BASE_HTTPS_PROBER_H_ | 6 #define NET_BASE_HTTPS_PROBER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual void OnSSLCertificateError(URLRequest* request, | 59 virtual void OnSSLCertificateError(URLRequest* request, |
60 int cert_error, | 60 int cert_error, |
61 X509Certificate* cert); | 61 X509Certificate* cert); |
62 virtual void OnResponseStarted(URLRequest* request); | 62 virtual void OnResponseStarted(URLRequest* request); |
63 virtual void OnReadCompleted(URLRequest* request, int bytes_read); | 63 virtual void OnReadCompleted(URLRequest* request, int bytes_read); |
64 | 64 |
65 private: | 65 private: |
66 friend struct DefaultSingletonTraits<HTTPSProber>; | 66 friend struct DefaultSingletonTraits<HTTPSProber>; |
67 | 67 |
68 HTTPSProber(); | 68 HTTPSProber(); |
69 ~HTTPSProber(); | 69 virtual ~HTTPSProber(); |
70 | 70 |
71 void Success(URLRequest* request); | 71 void Success(URLRequest* request); |
72 void Failure(URLRequest* request); | 72 void Failure(URLRequest* request); |
73 void DoCallback(URLRequest* request, bool result); | 73 void DoCallback(URLRequest* request, bool result); |
74 | 74 |
75 std::map<std::string, HTTPSProberDelegate*> inflight_probes_; | 75 std::map<std::string, HTTPSProberDelegate*> inflight_probes_; |
76 std::set<std::string> probed_; | 76 std::set<std::string> probed_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(HTTPSProber); | 78 DISALLOW_COPY_AND_ASSIGN(HTTPSProber); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace net | 81 } // namespace net |
82 | 82 |
83 #endif // NET_BASE_HTTPS_PROBER_H_ | 83 #endif // NET_BASE_HTTPS_PROBER_H_ |
OLD | NEW |