Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to WebCrypto like API. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 {
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698