| 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_
|
|
|