Chromium Code Reviews| Index: chrome/browser/chromeos/net/nss_cert_database_factory.h |
| diff --git a/chrome/browser/chromeos/net/nss_cert_database_factory.h b/chrome/browser/chromeos/net/nss_cert_database_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..98bc1a7001d4eb07a2f6769f8f1c7e9ce4782ae0 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/net/nss_cert_database_factory.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ |
| +#define CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| + |
| +class Profile; |
| + |
| +namespace net { |
| +class NSSCertDatabase; |
| +} |
| + |
| +namespace chromeos { |
| + |
| +// Utility function that gets the NSSCertDatabase instance for a profile. |
| +// It makes sure that the NSSCertDatabase is fetched from the right tread |
|
stevenjb
2014/01/23 18:17:42
thread
tbarzic
2014/01/23 19:18:37
Done.
|
| +// (IO thread) and run callback on the calling thread. The callback will always |
| +// be called asynchronously. |
| +void GetNSSCertDatabaseForProfile( |
| + Profile* profile, |
| + const base::Callback<void(net::NSSCertDatabase*)>& callback); |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ |