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

Unified Diff: net/base/default_origin_bound_cert_store.cc

Issue 9617039: Change Origin bound certs -> Domain bound certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: explanitory comment Created 8 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
Index: net/base/default_origin_bound_cert_store.cc
diff --git a/net/base/default_origin_bound_cert_store.cc b/net/base/default_origin_bound_cert_store.cc
index 8e721aeda1996f69762ed561b137ac80f807be69..b862975194fb803a9b1e659d4fbc1153faf6234e 100644
--- a/net/base/default_origin_bound_cert_store.cc
+++ b/net/base/default_origin_bound_cert_store.cc
@@ -28,7 +28,7 @@ void DefaultOriginBoundCertStore::FlushStore(
}
bool DefaultOriginBoundCertStore::GetOriginBoundCert(
- const std::string& origin,
+ const std::string& domain,
SSLClientCertType* type,
base::Time* creation_time,
base::Time* expiration_time,
@@ -37,7 +37,7 @@ bool DefaultOriginBoundCertStore::GetOriginBoundCert(
base::AutoLock autolock(lock_);
InitIfNecessary();
- OriginBoundCertMap::iterator it = origin_bound_certs_.find(origin);
+ OriginBoundCertMap::iterator it = origin_bound_certs_.find(domain);
if (it == origin_bound_certs_.end())
return false;
@@ -53,7 +53,7 @@ bool DefaultOriginBoundCertStore::GetOriginBoundCert(
}
void DefaultOriginBoundCertStore::SetOriginBoundCert(
- const std::string& origin,
+ const std::string& domain,
SSLClientCertType type,
base::Time creation_time,
base::Time expiration_time,
@@ -62,18 +62,18 @@ void DefaultOriginBoundCertStore::SetOriginBoundCert(
base::AutoLock autolock(lock_);
InitIfNecessary();
- InternalDeleteOriginBoundCert(origin);
+ InternalDeleteOriginBoundCert(domain);
InternalInsertOriginBoundCert(
- origin,
+ domain,
new OriginBoundCert(
- origin, type, creation_time, expiration_time, private_key, cert));
+ domain, type, creation_time, expiration_time, private_key, cert));
}
void DefaultOriginBoundCertStore::DeleteOriginBoundCert(
- const std::string& origin) {
+ const std::string& domain) {
base::AutoLock autolock(lock_);
InitIfNecessary();
- InternalDeleteOriginBoundCert(origin);
+ InternalDeleteOriginBoundCert(domain);
}
void DefaultOriginBoundCertStore::DeleteAllCreatedBetween(
@@ -145,15 +145,15 @@ void DefaultOriginBoundCertStore::InitStore() {
for (std::vector<OriginBoundCert*>::const_iterator it = certs.begin();
it != certs.end(); ++it) {
- origin_bound_certs_[(*it)->origin()] = *it;
+ origin_bound_certs_[(*it)->domain()] = *it;
}
}
void DefaultOriginBoundCertStore::InternalDeleteOriginBoundCert(
- const std::string& origin) {
+ const std::string& domain) {
lock_.AssertAcquired();
- OriginBoundCertMap::iterator it = origin_bound_certs_.find(origin);
+ OriginBoundCertMap::iterator it = origin_bound_certs_.find(domain);
if (it == origin_bound_certs_.end())
return; // There is nothing to delete.
@@ -165,13 +165,13 @@ void DefaultOriginBoundCertStore::InternalDeleteOriginBoundCert(
}
void DefaultOriginBoundCertStore::InternalInsertOriginBoundCert(
- const std::string& origin,
+ const std::string& domain,
OriginBoundCert* cert) {
lock_.AssertAcquired();
if (store_)
store_->AddOriginBoundCert(*cert);
- origin_bound_certs_[origin] = cert;
+ origin_bound_certs_[domain] = cert;
}
DefaultOriginBoundCertStore::PersistentStore::PersistentStore() {}

Powered by Google App Engine
This is Rietveld 408576698