Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 namespace net { | |
| 15 class NSSCertDatabase; | |
| 16 } | |
| 17 | |
| 18 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
| |
| 19 | |
| 20 // Utility function that gets the NSSCertDatabase instance for a profile. | |
| 21 // It makes sure that the NSSCertDatabase is fetched from the right thread | |
| 22 // (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.
| |
| 23 // be called asynchronously. | |
| 24 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
| |
| 25 Profile* profile, | |
| 26 const base::Callback<void(net::NSSCertDatabase*)>& callback); | |
| 27 | |
| 28 } // namespace chromeos | |
| 29 | |
| 30 #endif // CHROME_BROWSER_CHROMEOS_NET_NSS_CERT_DATABASE_FACTORY_H_ | |
| OLD | NEW |