blob: 42a53c28dd9c45dafa303ab8ede397c482bf996e [file] [log] [blame]
eroman0fad62b2015-04-08 18:54:111// 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
bnc3698b0a02016-12-09 23:36:505#ifndef NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_
6#define NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_
eroman0fad62b2015-04-08 18:54:117
estark6f57ec32017-01-13 04:40:108#include "base/memory/ref_counted.h"
eroman0fad62b2015-04-08 18:54:119#include "net/base/net_export.h"
eroman0fad62b2015-04-08 18:54:1110
11namespace net {
12
eroman994db992016-11-28 23:23:3313class CertNetFetcher;
estark6f57ec32017-01-13 04:40:1014class URLRequestContext;
eroman0fad62b2015-04-08 18:54:1115
eroman994db992016-11-28 23:23:3316// Creates a CertNetFetcher that issues requests through the provided
estark6f57ec32017-01-13 04:40:1017// 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.
21NET_EXPORT scoped_refptr<CertNetFetcher> CreateCertNetFetcher(
22 URLRequestContext* context);
eroman0fad62b2015-04-08 18:54:1123
24} // namespace net
25
bnc3698b0a02016-12-09 23:36:5026#endif // NET_CERT_NET_CERT_NET_FETCHER_IMPL_H_