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

Side by Side Diff: chrome/browser/chromeos/certificate_provider/certificate_provider_service.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
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_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_H_
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_H_ 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // once per client certificate request by the net layer. 73 // once per client certificate request by the net layer.
74 virtual std::vector<std::string> CertificateProviderExtensions() = 0; 74 virtual std::vector<std::string> CertificateProviderExtensions() = 0;
75 75
76 // Broadcasts a certificate request with |cert_request_id| to all 76 // Broadcasts a certificate request with |cert_request_id| to all
77 // certificate provider extensions. 77 // certificate provider extensions.
78 virtual void BroadcastCertificateRequest(int cert_request_id) = 0; 78 virtual void BroadcastCertificateRequest(int cert_request_id) = 0;
79 79
80 // Dispatches a sign request with the given arguments to the extension with 80 // Dispatches a sign request with the given arguments to the extension with
81 // id |extension_id|. Returns whether that extension is actually a listener 81 // id |extension_id|. Returns whether that extension is actually a listener
82 // for that event. 82 // for that event.
83 virtual bool DispatchSignRequestToExtension(const std::string& extension_id, 83 virtual bool DispatchSignRequestToExtension(
84 int sign_request_id, 84 const std::string& extension_id,
85 net::SSLPrivateKey::Hash hash, 85 int sign_request_id,
86 const std::string& digest) = 0; 86 net::SSLPrivateKey::Hash hash,
87 const scoped_refptr<net::X509Certificate>& certificate,
88 const std::string& digest) = 0;
87 89
88 private: 90 private:
89 DISALLOW_COPY_AND_ASSIGN(Delegate); 91 DISALLOW_COPY_AND_ASSIGN(Delegate);
90 }; 92 };
91 93
92 // |SetDelegate| must be called exactly once directly after construction. 94 // |SetDelegate| must be called exactly once directly after construction.
93 CertificateProviderService(); 95 CertificateProviderService();
94 ~CertificateProviderService() override; 96 ~CertificateProviderService() override;
95 97
96 // Must be called exactly once after construction and before other methods are 98 // Must be called exactly once after construction and before other methods are
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 193
192 base::ThreadChecker thread_checker_; 194 base::ThreadChecker thread_checker_;
193 base::WeakPtrFactory<CertificateProviderService> weak_factory_; 195 base::WeakPtrFactory<CertificateProviderService> weak_factory_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(CertificateProviderService); 197 DISALLOW_COPY_AND_ASSIGN(CertificateProviderService);
196 }; 198 };
197 199
198 } // namespace chromeos 200 } // namespace chromeos
199 201
200 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SER VICE_H_ 202 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SER VICE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/certificate_provider/certificate_provider_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698