diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-12 15:22:49 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-12 15:22:49 +0000 |
commit | b1f3f527f1c81d52be8cb8e8ca5499de9ca88275 (patch) | |
tree | f1764b07fe5c899cb074123221c05d8f86938ab0 /chromeos/cert_loader.h | |
parent | 44aa2bc3d2dfb8c555af66a371d18d8474ac2028 (diff) | |
download | chromium_src-b1f3f527f1c81d52be8cb8e8ca5499de9ca88275.zip chromium_src-b1f3f527f1c81d52be8cb8e8ca5499de9ca88275.tar.gz chromium_src-b1f3f527f1c81d52be8cb8e8ca5499de9ca88275.tar.bz2 |
Refactor the client certificate code in chromeos/network/.
This prepares for the next commit, which adds automatic resolution of client certificates which doesn't require a manual trigger by the user anymore.
The only functional is that flimflam::kOpenVPNClientCertSlotProperty is not set anymore, because it was never supported by Shill and leads to errors with Service::SetProperties.
BUG=234983, 126870
R=stevenjb@chromium.org
Review URL: https://codereview.chromium.org/22588002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/cert_loader.h')
-rw-r--r-- | chromeos/cert_loader.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chromeos/cert_loader.h b/chromeos/cert_loader.h index ec2d7ce..75d2cd0 100644 --- a/chromeos/cert_loader.h +++ b/chromeos/cert_loader.h @@ -7,6 +7,7 @@ #include <string> +#include "base/basictypes.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" @@ -20,6 +21,7 @@ namespace base { class SequencedTaskRunner; +class TaskRunner; } namespace crypto { @@ -65,6 +67,8 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer, // Returns true if the global instance has been initialized. static bool IsInitialized(); + static std::string GetPkcs11IdForCert(const net::X509Certificate& cert); + // |crypto_task_runner| is the task runner that any synchronous crypto calls // should be made from, e.g. in Chrome this is the IO thread. Must be called // after the thread is started. Certificate loading will not happen unless @@ -75,7 +79,7 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer, // Sets the task runner that any slow calls will be made from, e.g. calls // to the NSS database. If not set, uses base::WorkerPool. void SetSlowTaskRunnerForTest( - const scoped_refptr<base::SequencedTaskRunner>& task_runner); + const scoped_refptr<base::TaskRunner>& task_runner); void AddObserver(CertLoader::Observer* observer); void RemoveObserver(CertLoader::Observer* observer); @@ -86,8 +90,6 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer, // Returns true if the TPM is available for hardware-backed certificates. bool IsHardwareBacked() const; - std::string GetPkcs11IdForCert(const net::X509Certificate& cert) const; - bool certificates_loaded() const { return certificates_loaded_; } // TPM info is only valid once the TPM is available (IsHardwareBacked is |