eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 1 | // Copyright 2015 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 | |
bnc | 3698b0a0 | 2016-12-09 23:36:50 | [diff] [blame] | 5 | #ifndef NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_ |
| 6 | #define NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_ |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 7 | |
estark | 6f57ec3 | 2017-01-13 04:40:10 | [diff] [blame] | 8 | #include "base/memory/ref_counted.h" |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 9 | #include "net/base/net_export.h" |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 10 | |
| 11 | namespace net { |
| 12 | |
eroman | 994db99 | 2016-11-28 23:23:33 | [diff] [blame] | 13 | class CertNetFetcher; |
estark | 6f57ec3 | 2017-01-13 04:40:10 | [diff] [blame] | 14 | class URLRequestContext; |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 15 | |
eroman | 994db99 | 2016-11-28 23:23:33 | [diff] [blame] | 16 | // Creates a CertNetFetcher that issues requests through the provided |
estark | 6f57ec3 | 2017-01-13 04:40:10 | [diff] [blame] | 17 | // URLRequestContext. The URLRequestContext must stay valid until the returned |
| 18 | // CertNetFetcher's Shutdown method is called. The CertNetFetcher is to be |
| 19 | // created and shutdown on the network thread. Its Fetch methods are to be used |
| 20 | // on a *different* thread, since it gives a blocking interface to URL fetching. |
| 21 | NET_EXPORT scoped_refptr<CertNetFetcher> CreateCertNetFetcher( |
| 22 | URLRequestContext* context); |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 23 | |
| 24 | } // namespace net |
| 25 | |
bnc | 3698b0a0 | 2016-12-09 23:36:50 | [diff] [blame] | 26 | #endif // NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_ |