#include "chrome/browser/ui/webui/certificate_manager/enterprise_cert_sources.h"
#include <vector>
#include "chrome/browser/net/profile_network_context_service.h"
#include "chrome/browser/net/profile_network_context_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/certificate_dialogs.h"
#include "chrome/browser/ui/webui/certificate_manager/certificate_manager_handler.h"
#include "chrome/browser/ui/webui/certificate_manager/certificate_manager_utils.h"
#include "chrome/browser/ui/webui/certificate_viewer_webui.h"
#include "chrome/common/net/x509_certificate_model.h"
#include "content/public/browser/web_contents.h"
#include "crypto/sha2.h"
#include "net/cert/x509_util.h"
EnterpriseCertSource::EnterpriseCertSource(std::string export_file_name)
: … { … }
void EnterpriseCertSource::GetCertificateInfos(
CertificateManagerPageHandler::GetCertificatesCallback callback) { … }
void EnterpriseCertSource::ViewCertificate(
const std::string& sha256_hex_hash,
base::WeakPtr<content::WebContents> web_contents) { … }
void EnterpriseCertSource::ExportCertificates(
base::WeakPtr<content::WebContents> web_contents) { … }
EnterpriseTrustedCertSource::EnterpriseTrustedCertSource(Profile* profile)
: … { … }
void EnterpriseTrustedCertSource::ViewCertificate(
const std::string& sha256_hex_hash,
base::WeakPtr<content::WebContents> web_contents) { … }
std::vector<std::vector<uint8_t>> EnterpriseTrustedCertSource::GetCerts() { … }
EnterpriseIntermediateCertSource::EnterpriseIntermediateCertSource(
Profile* profile)
: … { … }
std::vector<std::vector<uint8_t>> EnterpriseIntermediateCertSource::GetCerts() { … }
EnterpriseDistrustedCertSource::EnterpriseDistrustedCertSource(Profile* profile)
: … { … }
std::vector<std::vector<uint8_t>> EnterpriseDistrustedCertSource::GetCerts() { … }