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

Unified Diff: chrome/browser/chromeos/net/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: certdb: handle GetCertTrust and IsUntrusted, failed attempt to handle SetCertTrust Created 7 years, 1 month 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
Index: chrome/browser/chromeos/net/client_cert_store_chromeos.h
diff --git a/chrome/browser/chromeos/net/client_cert_store_chromeos.h b/chrome/browser/chromeos/net/client_cert_store_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4218ffa818371eb3db2687163204acfef180847
--- /dev/null
+++ b/chrome/browser/chromeos/net/client_cert_store_chromeos.h
@@ -0,0 +1,53 @@
+// 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 CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_
+#define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_
+
+#include <vector>
+
+#include "base/callback.h"
+#include "crypto/scoped_nss_types.h"
+#include "net/cert/nss_profile_filter_chromeos.h"
+#include "net/cert/x509_certificate.h"
+#include "net/ssl/client_cert_store.h"
+#include "net/ssl/client_cert_store_impl.h"
+
+namespace chromeos {
+
+class ClientCertStoreChromeOS : public net::ClientCertStore {
+ public:
+ // Caller must ensure |context| is still alive at the point GetClientCerts is
+ // called.
+ explicit ClientCertStoreChromeOS(content::ResourceContext* context);
+ virtual ~ClientCertStoreChromeOS();
+
+ // net::ClientCertStore:
+ virtual void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info,
+ net::CertificateList* selected_certs,
+ const base::Closure& callback) OVERRIDE;
+
+ private:
+ void DidGetSlots(crypto::ScopedPK11Slot public_slot,
+ crypto::ScopedPK11Slot private_slot);
+ void GotClientCerts();
+
+ content::ResourceContext* context_;
+
+ const net::SSLCertRequestInfo* cert_request_info_;
+
+ net::CertificateList* selected_certs_;
+
+ net::ClientCertStoreImpl net_client_cert_store_impl_;
+
+ net::NSSProfileFilterChromeOS profile_filter_;
+
+ base::Closure callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_
« no previous file with comments | « chrome/browser/certificate_manager_model.cc ('k') | chrome/browser/chromeos/net/client_cert_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698