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() {} |