static void SetStorageKey(nsAutoCString& storageKey, nsCString& hostname, uint32_t aType) { storageKey = hostname; switch (aType) { case nsISiteSecurityService::HEADER_HSTS: storageKey.AppendLiteral(":HSTS"); break; case nsISiteSecurityService::HEADER_HPKP: storageKey.AppendLiteral(":HPKP"); break; default: NS_ASSERTION(false, "SSS:SetStorageKey got invalid type"); } }