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

Side by Side Diff: chrome/browser/extensions/api/certificate_provider/certificate_provider_api.h

Issue 1232553003: Add new certificateProvider extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698