OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 } // namespace platform_keys | 33 } // namespace platform_keys |
34 | 34 |
35 class PlatformKeysInternalSelectClientCertificatesFunction | 35 class PlatformKeysInternalSelectClientCertificatesFunction |
36 : public ChromeUIThreadExtensionFunction { | 36 : public ChromeUIThreadExtensionFunction { |
37 private: | 37 private: |
38 ~PlatformKeysInternalSelectClientCertificatesFunction() override; | 38 ~PlatformKeysInternalSelectClientCertificatesFunction() override; |
39 ResponseAction Run() override; | 39 ResponseAction Run() override; |
40 | 40 |
41 // Called when the certificates were selected. If an error occurred, |certs| | 41 // Called when the certificates were selected. If an error occurred, |certs| |
42 // will be null and instead |error_message| be set. | 42 // will be null and instead |error_message| be set. |
43 void OnSelectedCertificates(scoped_ptr<net::CertificateList> matches, | 43 void OnSelectedCertificates(std::unique_ptr<net::CertificateList> matches, |
44 const std::string& error_message); | 44 const std::string& error_message); |
45 | 45 |
46 DECLARE_EXTENSION_FUNCTION("platformKeysInternal.selectClientCertificates", | 46 DECLARE_EXTENSION_FUNCTION("platformKeysInternal.selectClientCertificates", |
47 PLATFORMKEYSINTERNAL_SELECTCLIENTCERTIFICATES); | 47 PLATFORMKEYSINTERNAL_SELECTCLIENTCERTIFICATES); |
48 }; | 48 }; |
49 | 49 |
50 class PlatformKeysInternalGetPublicKeyFunction | 50 class PlatformKeysInternalGetPublicKeyFunction |
51 : public ChromeUIThreadExtensionFunction { | 51 : public ChromeUIThreadExtensionFunction { |
52 private: | 52 private: |
53 ~PlatformKeysInternalGetPublicKeyFunction() override; | 53 ~PlatformKeysInternalGetPublicKeyFunction() override; |
(...skipping 27 matching lines...) Expand all Loading... |
81 int verify_result, | 81 int verify_result, |
82 int cert_status); | 82 int cert_status); |
83 | 83 |
84 DECLARE_EXTENSION_FUNCTION("platformKeys.verifyTLSServerCertificate", | 84 DECLARE_EXTENSION_FUNCTION("platformKeys.verifyTLSServerCertificate", |
85 PLATFORMKEYS_VERIFYTLSSERVERCERTIFICATE); | 85 PLATFORMKEYS_VERIFYTLSSERVERCERTIFICATE); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace extensions | 88 } // namespace extensions |
89 | 89 |
90 #endif // CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ | 90 #endif // CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_PLATFORM_KEYS_API_H_ |
OLD | NEW |