OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_
API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_
API_H_ |
| 7 |
| 8 #include "extensions/browser/extension_function.h" |
| 9 |
| 10 namespace chromeos { |
| 11 namespace certificate_provider { |
| 12 struct CertificateInfo; |
| 13 } |
| 14 } |
| 15 |
| 16 namespace extensions { |
| 17 |
| 18 namespace api { |
| 19 namespace certificate_provider { |
| 20 struct CertificateInfo; |
| 21 } |
| 22 } |
| 23 |
| 24 class CertificateProviderInternalReportCertificatesFunction |
| 25 : public UIThreadExtensionFunction { |
| 26 private: |
| 27 ~CertificateProviderInternalReportCertificatesFunction() override; |
| 28 ResponseAction Run() override; |
| 29 |
| 30 bool ParseCertificateInfo( |
| 31 const api::certificate_provider::CertificateInfo& info, |
| 32 chromeos::certificate_provider::CertificateInfo* out_info); |
| 33 |
| 34 DECLARE_EXTENSION_FUNCTION("certificateProviderInternal.reportCertificates", |
| 35 CERTIFICATEPROVIDERINTERNAL_REPORTCERTIFICATES); |
| 36 }; |
| 37 |
| 38 class CertificateProviderInternalReportSignatureFunction |
| 39 : public UIThreadExtensionFunction { |
| 40 private: |
| 41 ~CertificateProviderInternalReportSignatureFunction() override; |
| 42 ResponseAction Run() override; |
| 43 |
| 44 DECLARE_EXTENSION_FUNCTION("certificateProviderInternal.reportSignature", |
| 45 CERTIFICATEPROVIDERINTERNAL_REPORTSIGNATURE); |
| 46 }; |
| 47 |
| 48 } // namespace extensions |
| 49 |
| 50 #endif // CHROME_BROWSER_EXTENSIONS_API_CERTIFICATE_PROVIDER_CERTIFICATE_PROVID
ER_API_H_ |
OLD | NEW |