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..d8b4176748a9ae9109227e85914d595480c13718 |
| --- /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 { |
|
pneubeck (no reviews)
2014/01/24 13:18:02
Is this really chromeos only?
If not, could we mov
tbarzic
2014/01/25 00:26:27
hm, not really, it's more nss specific :)
moving i
|
| + |
| +// Utility function that gets the NSSCertDatabase instance for a profile. |
| +// It makes sure that the NSSCertDatabase is fetched from the right thread |
| +// (IO thread) and run callback on the calling thread. The callback will always |
|
pneubeck (no reviews)
2014/01/24 13:18:02
s/run callback/the callback is run/ ?
tbarzic
2014/01/25 00:26:27
Done.
|
| +// be called asynchronously. |
| +void GetNSSCertDatabaseForProfile( |
|
pneubeck (no reviews)
2014/01/24 13:18:02
It might be helpful to add a comment to GetNSSCert
tbarzic
2014/01/25 00:26:27
moved the method there
|
| + Profile* profile, |
| + const base::Callback<void(net::NSSCertDatabase*)>& callback); |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ |