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

Unified Diff: net/ssl/client_cert_identity_mac.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/client_cert_identity.cc ('k') | net/ssl/client_cert_identity_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/client_cert_identity_mac.h
diff --git a/net/ssl/client_cert_identity_mac.h b/net/ssl/client_cert_identity_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..268676e72ac4f7702cc68f0f9a90e36ad3647003
--- /dev/null
+++ b/net/ssl/client_cert_identity_mac.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SSL_SSL_CLIENT_CERT_IDENTITY_MAC_H_
+#define NET_SSL_SSL_CLIENT_CERT_IDENTITY_MAC_H_
+
+#include "net/ssl/client_cert_identity.h"
+
+#include <Security/SecBase.h>
+
+#include "base/mac/scoped_cftyperef.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+class NET_EXPORT_PRIVATE ClientCertIdentityMac : public ClientCertIdentity {
+ public:
+ ClientCertIdentityMac(scoped_refptr<net::X509Certificate> cert,
+ base::ScopedCFTypeRef<SecIdentityRef> sec_identity);
+ ~ClientCertIdentityMac() override;
+
+ void AcquirePrivateKey(
+ const base::Callback<void(scoped_refptr<SSLPrivateKey>)>&
+ private_key_callback) override;
+ SecIdentityRef sec_identity_ref() const override;
+
+ private:
+ base::ScopedCFTypeRef<SecIdentityRef> identity_;
+};
+
+} // namespace net
+
+#endif // NET_SSL_SSL_CLIENT_CERT_IDENTITY_MAC_H_
« no previous file with comments | « net/ssl/client_cert_identity.cc ('k') | net/ssl/client_cert_identity_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698