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

Unified Diff: net/ssl/client_cert_store_chromeos.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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_store.h ('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
deleted file mode 100644
index 2bc359cd9a5f3a0c251bacf4281bc90d2d52c1ed..0000000000000000000000000000000000000000
--- a/net/ssl/client_cert_store_chromeos.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 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 "base/memory/scoped_ptr.h"
-#include "net/ssl/client_cert_store_nss.h"
-
-namespace net {
-
-class X509Certificate;
-
-class NET_EXPORT ClientCertStoreChromeOS : public ClientCertStoreNSS {
- public:
- class CertFilter {
- public:
- virtual ~CertFilter() {}
-
- // Initializes this filter. Returns true if it finished initialization,
- // otherwise returns false and calls |callback| once the initialization is
- // completed.
- // Must be called at most once.
- virtual bool Init(const base::Closure& callback) = 0;
-
- // Returns true if |cert| is allowed to be used as a client certificate
- // (e.g. for a certain browser context or user).
- // This is only called once initialization is finished, see Init().
- virtual bool IsCertAllowed(
- const scoped_refptr<X509Certificate>& cert) const = 0;
- };
-
- // This ClientCertStore will return only client certs that pass the filter
- // |cert_filter|.
- ClientCertStoreChromeOS(
- scoped_ptr<CertFilter> cert_filter,
- const PasswordDelegateFactory& password_delegate_factory);
- ~ClientCertStoreChromeOS() override;
-
- // ClientCertStoreNSS:
- void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
- CertificateList* selected_certs,
- const base::Closure& callback) override;
-
- protected:
- // ClientCertStoreNSS:
- void GetClientCertsImpl(CERTCertList* cert_list,
- const SSLCertRequestInfo& request,
- bool query_nssdb,
- CertificateList* selected_certs) override;
-
- private:
- void CertFilterInitialized(const SSLCertRequestInfo* request,
- CertificateList* selected_certs,
- const base::Closure& callback);
-
- scoped_ptr<CertFilter> cert_filter_;
-
- DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS);
-};
-
-} // namespace net
-
-#endif // NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
« no previous file with comments | « net/ssl/client_cert_store.h ('k') | net/ssl/client_cert_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698