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

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: json -> idl, use ChromeUIThreadExtFun, split key.js, ... 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 extensions {
18
19 namespace enterprise_platform_keys {
20
21 class TokenMethodExtensionFunction;
22
23 namespace nss {
24
25 void Generate(
26 scoped_refptr<TokenMethodExtensionFunction> func,
27 scoped_ptr<api::enterprise_platform_keys_internal::GenerateKey::Params>
28 params);
29
30 void Sign(
31 scoped_refptr<TokenMethodExtensionFunction> func,
32 scoped_ptr<api::enterprise_platform_keys_internal::Sign::Params> params);
33
34 void GetCerts(
35 scoped_refptr<TokenMethodExtensionFunction> func,
36 scoped_ptr<api::enterprise_platform_keys::GetCertificates::Params> params);
37
38 void Import(scoped_refptr<TokenMethodExtensionFunction> func,
39 scoped_ptr<api::enterprise_platform_keys::ImportCertificate::Params>
40 params);
41
42 void Remove(scoped_refptr<TokenMethodExtensionFunction> func,
43 scoped_ptr<api::enterprise_platform_keys::RemoveCertificate::Params>
44 params);
45
46 } // namespace nss
47
48 } // namespace enterprise_platform_keys
49
50 } // namespace extensions
51
52 #endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_N SS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698