Index: chrome/browser/chromeos/net/client_cert_store_cros.h |
diff --git a/chrome/browser/chromeos/net/client_cert_store_cros.h b/chrome/browser/chromeos/net/client_cert_store_cros.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e180a116c20f354623745b5aafda80753f251e43 |
--- /dev/null |
+++ b/chrome/browser/chromeos/net/client_cert_store_cros.h |
@@ -0,0 +1,51 @@ |
+// 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_CROS_H_ |
+#define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_ |
+ |
+#include <vector> |
+ |
+#include "base/callback.h" |
+#include "base/memory/ref_counted.h" |
+#include "chrome/browser/chromeos/net/profile_cert_filter.h" |
+#include "crypto/scoped_nss_types.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 ClientCertStoreCros : public net::ClientCertStore { |
+ public: |
+ explicit ClientCertStoreCros(content::ResourceContext* context); |
+ virtual ~ClientCertStoreCros() {} |
+ |
+ // net::ClientCertStore: |
+ virtual void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info, |
+ net::CertificateList* selected_certs, |
+ const base::Closure& callback) OVERRIDE; |
+ |
+ private: |
+ void ReadyToGetCerts(); |
+ void GotClientCerts(); |
+ |
+ const net::SSLCertRequestInfo* cert_request_info_; |
+ |
+ net::CertificateList* selected_certs_; |
+ |
+ net::ClientCertStoreImpl net_client_cert_store_impl_; |
+ |
+ ProfileCertFilter profile_cert_filter_; |
+ |
+ base::Closure ready_to_get_certs_barrier_; |
+ |
+ base::Closure callback_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ClientCertStoreCros); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_ |