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_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_NSS_ H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_NSS_ H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "base/macros.h" | |
| 12 #include "base/memory/weak_ptr.h" | |
| 13 #include "chrome/common/extensions/api/enterprise_platform_keys.h" | |
| 14 #include "chrome/common/extensions/api/enterprise_platform_keys_internal.h" | |
| 15 #include "crypto/scoped_nss_types.h" | |
| 16 | |
| 17 namespace net { | |
| 18 class NSSCertDatabase; | |
| 19 class X509Certificate; | |
| 20 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; | |
| 21 } | |
| 22 | |
| 23 namespace extensions { | |
| 24 | |
| 25 namespace enterprise_platform_keys { | |
|
not at google - send to devlin
2014/05/05 21:09:24
same comment re namespace, and why does this funct
pneubeck (no reviews)
2014/05/05 21:28:23
It's the NSS specific implementation (vs. OpenSSL)
not at google - send to devlin
2014/05/07 00:00:12
This doesn't look right, these are all effectively
pneubeck (no reviews)
2014/05/07 21:44:19
The reason was that I didn't dare to do such a cra
| |
| 26 | |
| 27 class TokenMethodExtensionFunction; | |
| 28 | |
| 29 namespace nss { | |
| 30 | |
| 31 void Generate( | |
| 32 scoped_refptr<TokenMethodExtensionFunction> func, | |
| 33 scoped_ptr<api::enterprise_platform_keys_internal::GenerateKey::Params> | |
| 34 params); | |
| 35 | |
| 36 void Sign( | |
| 37 scoped_refptr<TokenMethodExtensionFunction> func, | |
| 38 scoped_ptr<api::enterprise_platform_keys_internal::Sign::Params> params); | |
| 39 | |
| 40 void GetCerts( | |
| 41 scoped_refptr<TokenMethodExtensionFunction> func, | |
| 42 scoped_ptr<api::enterprise_platform_keys::GetCertificates::Params> params); | |
| 43 | |
| 44 void Import(scoped_refptr<TokenMethodExtensionFunction> func, | |
| 45 scoped_ptr<api::enterprise_platform_keys::ImportCertificate::Params> | |
| 46 params); | |
| 47 | |
| 48 void Remove(scoped_refptr<TokenMethodExtensionFunction> func, | |
| 49 scoped_ptr<api::enterprise_platform_keys::RemoveCertificate::Params> | |
| 50 params); | |
| 51 | |
| 52 } // namespace nss | |
| 53 | |
| 54 } // namespace enterprise_platform_keys | |
| 55 | |
| 56 } // namespace extensions | |
| 57 | |
| 58 #endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_N SS_H_ | |
| OLD | NEW |