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

Unified Diff: net/ssl/client_cert_store_chromeos.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more refactoring Created 7 years 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/net.gyp ('k') | net/ssl/client_cert_store_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/client_cert_store_chromeos.h
diff --git a/net/ssl/client_cert_store_chromeos.h b/net/ssl/client_cert_store_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b6d632a1277e59bd3b17a80374140a859c416ff
--- /dev/null
+++ b/net/ssl/client_cert_store_chromeos.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2013 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_CLIENT_CERT_STORE_CHROMEOS_H_
+#define NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
+
+#include <string>
+
+#include "crypto/scoped_nss_types.h"
+#include "net/cert/nss_profile_filter_chromeos.h"
+#include "net/ssl/client_cert_store_impl.h"
+
+namespace net {
+
+class NET_EXPORT ClientCertStoreChromeOS : public ClientCertStoreImpl {
+ public:
+ explicit ClientCertStoreChromeOS(const std::string& username_hash);
+ virtual ~ClientCertStoreChromeOS();
+
+ // ClientCertStoreImpl:
+ virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
+ CertificateList* selected_certs,
+ const base::Closure& callback) OVERRIDE;
+
+ private:
+ void DidGetPrivateSlot(crypto::ScopedPK11Slot private_slot);
+ void GotClientCerts();
+
+ std::string username_hash_;
+
+ const SSLCertRequestInfo* cert_request_info_;
+
+ CertificateList* selected_certs_;
+
+ NSSProfileFilterChromeOS profile_filter_;
+
+ base::Closure callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS);
+};
+
+} // namespace net
+
+#endif // NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
« no previous file with comments | « net/net.gyp ('k') | net/ssl/client_cert_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698