OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "net/url_request/https_prober.h" | 5 #include "net/url_request/https_prober.h" |
6 | 6 |
7 #include "net/url_request/url_request.h" | 7 #include "net/url_request/url_request.h" |
8 #include "net/url_request/url_request_context.h" | 8 #include "net/url_request/url_request_context.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
| 12 HTTPSProber::HTTPSProber() { |
| 13 } |
| 14 |
| 15 HTTPSProber::~HTTPSProber() { |
| 16 } |
| 17 |
12 bool HTTPSProber::HaveProbed(const std::string& host) const { | 18 bool HTTPSProber::HaveProbed(const std::string& host) const { |
13 return probed_.find(host) != probed_.end(); | 19 return probed_.find(host) != probed_.end(); |
14 } | 20 } |
15 | 21 |
16 bool HTTPSProber::InFlight(const std::string& host) const { | 22 bool HTTPSProber::InFlight(const std::string& host) const { |
17 return inflight_probes_.find(host) != inflight_probes_.end(); | 23 return inflight_probes_.find(host) != inflight_probes_.end(); |
18 } | 24 } |
19 | 25 |
20 bool HTTPSProber::ProbeHost(const std::string& host, URLRequestContext* ctx, | 26 bool HTTPSProber::ProbeHost(const std::string& host, URLRequestContext* ctx, |
21 HTTPSProberDelegate* delegate) { | 27 HTTPSProberDelegate* delegate) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } else { | 77 } else { |
72 Failure(request); | 78 Failure(request); |
73 } | 79 } |
74 } | 80 } |
75 | 81 |
76 void HTTPSProber::OnReadCompleted(URLRequest* request, int bytes_read) { | 82 void HTTPSProber::OnReadCompleted(URLRequest* request, int bytes_read) { |
77 NOTREACHED(); | 83 NOTREACHED(); |
78 } | 84 } |
79 | 85 |
80 } // namespace net | 86 } // namespace net |
OLD | NEW |