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 3 // found in the LICENSE file. 4 5 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h" 6 7 static DnsCertProvenanceCheckerFactory g_factory; 8 9 net::DnsCertProvenanceChecker* CreateDnsCertProvenanceChecker( 10 net::DnsRRResolver* dnsrr_resolver, 11 ChromeURLRequestContext* url_req_context) { 12 if (!g_factory) 13 return NULL; 14 15 return g_factory(dnsrr_resolver, url_req_context); 16 } 17 18 void SetDnsCertProvenanceCheckerFactory(DnsCertProvenanceCheckerFactory f) { 19 g_factory = f; 20 } 21