| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HTTPS_PROBER_H_ | 5 #ifndef NET_BASE_HTTPS_PROBER_H_ |
| 6 #define NET_URL_REQUEST_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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/singleton.h" | 13 #include "base/singleton.h" |
| 14 #include "base/task.h" |
| 14 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
| 15 | 16 |
| 16 class URLRequestContext; | 17 class URLRequestContext; |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 // This should be scoped inside HTTPSProber, but VC cannot compile | 21 // This should be scoped inside HTTPSProber, but VC cannot compile |
| 21 // HTTPProber::Delegate when HTTPSProber also inherits from | 22 // HTTPProber::Delegate when HTTPSProber also inherits from |
| 22 // URLRequest::Delegate. | 23 // URLRequest::Delegate. |
| 23 class HTTPSProberDelegate { | 24 class HTTPSProberDelegate { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void DoCallback(URLRequest* request, bool result); | 67 void DoCallback(URLRequest* request, bool result); |
| 67 | 68 |
| 68 std::map<std::string, HTTPSProberDelegate*> inflight_probes_; | 69 std::map<std::string, HTTPSProberDelegate*> inflight_probes_; |
| 69 std::set<std::string> probed_; | 70 std::set<std::string> probed_; |
| 70 | 71 |
| 71 friend struct DefaultSingletonTraits<HTTPSProber>; | 72 friend struct DefaultSingletonTraits<HTTPSProber>; |
| 72 DISALLOW_COPY_AND_ASSIGN(HTTPSProber); | 73 DISALLOW_COPY_AND_ASSIGN(HTTPSProber); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace net | 76 } // namespace net |
| 76 #endif // NET_URL_REQUEST_HTTPS_PROBER_H_ | 77 #endif |
| OLD | NEW |