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_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/macros.h" | |
11 #include "chrome/common/extensions/api/enterprise_platform_keys.h" | |
12 #include "chrome/common/extensions/api/enterprise_platform_keys_internal.h" | |
13 | |
14 namespace extensions { | |
15 | |
16 class EnterprisePlatformKeysTokenMethodExtensionFunction; | |
17 | |
18 namespace enterprise_platform_keys_details { | |
19 | |
20 class TokenMethod { | |
21 public: | |
22 explicit TokenMethod( | |
23 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
24 virtual ~TokenMethod(); | |
25 virtual void Run() = 0; | |
26 | |
27 protected: | |
28 EnterprisePlatformKeysTokenMethodExtensionFunction* func_; | |
29 | |
30 private: | |
31 DISALLOW_COPY_AND_ASSIGN(TokenMethod); | |
32 }; | |
33 | |
34 scoped_ptr<TokenMethod> CreateGenerateKey( | |
35 scoped_ptr<api::enterprise_platform_keys_internal::GenerateKey::Params> | |
36 params, | |
37 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
not at google - send to devlin
2014/05/08 00:13:14
Sorry but passing Functions around just doesn't ma
pneubeck (no reviews)
2014/05/08 15:04:17
Can you clarify what doesn't make sense to you?
T
not at google - send to devlin
2014/05/08 15:19:32
Why can't the ExtensionFunction implementations ge
| |
38 | |
39 scoped_ptr<TokenMethod> CreateSign( | |
40 scoped_ptr<api::enterprise_platform_keys_internal::Sign::Params> params, | |
41 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
42 | |
43 scoped_ptr<TokenMethod> CreateGetCertificates( | |
44 scoped_ptr<api::enterprise_platform_keys::GetCertificates::Params> params, | |
45 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
46 | |
47 scoped_ptr<TokenMethod> CreateImportCertificate( | |
48 scoped_ptr<api::enterprise_platform_keys::ImportCertificate::Params> params, | |
49 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
50 | |
51 scoped_ptr<TokenMethod> CreateRemoveCertificate( | |
52 scoped_ptr<api::enterprise_platform_keys::RemoveCertificate::Params> params, | |
53 EnterprisePlatformKeysTokenMethodExtensionFunction* func); | |
54 | |
55 } // namespace enterprise_platform_keys_details | |
56 | |
57 } // namespace extensions | |
58 | |
59 #endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_H _ | |
OLD | NEW |