blob: a0020eae4e8000609e8f3f697cad8f2995da210d [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ENTERPRISE_CLIENT_CERTIFICATES_PROFILE_CONTEXT_DELEGATE_H_
#define CHROME_BROWSER_ENTERPRISE_CLIENT_CERTIFICATES_PROFILE_CONTEXT_DELEGATE_H_
#include "base/memory/raw_ptr.h"
#include "components/enterprise/client_certificates/core/context_delegate.h"
class Profile;
namespace client_certificates {
class ProfileContextDelegate : public ContextDelegate {
public:
explicit ProfileContextDelegate(
Profile* profile);
~ProfileContextDelegate() override;
// ContextDelegate:
void OnClientCertificateDeleted(
scoped_refptr<net::X509Certificate> certificate) override;
std::string GetIdentityName() override;
std::string GetTemporaryIdentityName() override;
std::string GetPolicyPref() override;
std::string GetLoggingContext() override;
private:
const raw_ptr<Profile> profile_;
};
} // namespace client_certificates
#endif // CHROME_BROWSER_ENTERPRISE_CLIENT_CERTIFICATES_PROFILE_CONTEXT_DELEGATE_H_