#ifndef COMPONENTS_SAFE_BROWSING_CORE_BROWSER_PASSWORD_PROTECTION_METRICS_UTIL_H_
#define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_PASSWORD_PROTECTION_METRICS_UTIL_H_
#include "components/safe_browsing/core/common/proto/csd.pb.h"
namespace base {
class TimeTicks;
}
namespace safe_browsing {
extern const char kAnyPasswordEntryRequestOutcomeHistogram[];
extern const char kAnyPasswordEntryVerdictHistogram[];
extern const char kEnterprisePasswordEntryRequestOutcomeHistogram[];
extern const char kEnterprisePasswordEntryVerdictHistogram[];
extern const char kEnterprisePasswordInterstitialHistogram[];
extern const char kEnterprisePasswordPageInfoHistogram[];
extern const char kEnterprisePasswordWarningDialogHistogram[];
extern const char kSavedPasswordPageInfoHistogram[];
extern const char kGmailNonSyncPasswordInterstitialHistogram[];
extern const char kGmailSyncPasswordPageInfoHistogram[];
extern const char kGmailNonSyncPasswordPageInfoHistogram[];
extern const char kGmailSyncPasswordWarningDialogHistogram[];
extern const char kGmailNonSyncPasswordWarningDialogHistogram[];
extern const char kNonSyncPasswordInterstitialHistogram[];
extern const char kNonSyncPasswordPageInfoHistogram[];
extern const char kGmailSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kGmailNonSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kGSuiteNonSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kGSuiteSyncPasswordEntryVerdictHistogram[];
extern const char kGSuiteSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kGSuiteNonSyncPasswordEntryVerdictHistogram[];
extern const char kGmailSyncPasswordEntryVerdictHistogram[];
extern const char kGmailNonSyncPasswordEntryVerdictHistogram[];
extern const char kGSuiteSyncPasswordInterstitialHistogram[];
extern const char kGSuiteNonSyncPasswordInterstitialHistogram[];
extern const char kGSuiteSyncPasswordPageInfoHistogram[];
extern const char kGSuiteNonSyncPasswordPageInfoHistogram[];
extern const char kGSuiteSyncPasswordWarningDialogHistogram[];
extern const char kGSuiteNonSyncPasswordWarningDialogHistogram[];
extern const char kPasswordOnFocusRequestOutcomeHistogram[];
extern const char kPasswordOnFocusVerdictHistogram[];
extern const char kNonSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kNonSyncPasswordEntryVerdictHistogram[];
extern const char kSyncPasswordChromeSettingsHistogram[];
extern const char kSyncPasswordEntryRequestOutcomeHistogram[];
extern const char kSyncPasswordEntryVerdictHistogram[];
extern const char kSyncPasswordInterstitialHistogram[];
extern const char kSyncPasswordPageInfoHistogram[];
extern const char kSyncPasswordWarningDialogHistogram[];
extern const char kEnterprisePasswordAlertHistogram[];
extern const char kGsuiteSyncPasswordAlertHistogram[];
extern const char kGsuiteNonSyncPasswordAlertHistogram[];
extern const char kPasswordOnFocusRequestWithTokenHistogram[];
extern const char kAnyPasswordEntryRequestWithTokenHistogram[];
ReusedPasswordAccountType;
SyncAccountType;
VerdictType;
enum class RequestOutcome { … };
enum class WarningAction { … };
enum class WarningUIType { … };
void LogPasswordProtectionRequestTokenHistogram(
LoginReputationClientRequest::TriggerType trigger_type,
bool has_access_token);
void LogPasswordEntryRequestOutcome(
RequestOutcome outcome,
ReusedPasswordAccountType password_account_type);
void LogPasswordOnFocusRequestOutcome(RequestOutcome outcome);
void LogPasswordAlertModeOutcome(
RequestOutcome outcome,
ReusedPasswordAccountType password_account_type);
void LogPasswordProtectionVerdict(
LoginReputationClientRequest::TriggerType trigger_type,
ReusedPasswordAccountType password_account_type,
VerdictType verdict_type);
void LogNoPingingReason(LoginReputationClientRequest::TriggerType trigger_type,
RequestOutcome reason,
ReusedPasswordAccountType password_account_type);
void LogSyncAccountType(SyncAccountType sync_account_type);
void LogPasswordProtectionNetworkResponseAndDuration(
int response_code,
int net_error,
const base::TimeTicks& request_start_time);
void LogPasswordProtectionSampleReportSent();
void LogWarningAction(WarningUIType ui_type,
WarningAction action,
ReusedPasswordAccountType password_account_type);
void LogNumberOfVerdictMigrated(size_t verdicts_migrated);
void LogReferrerChainSize(
LoginReputationClientResponse::VerdictType verdict_type,
int referrer_chain_size);
void LogModalWarningDialogLifetime(
base::TimeTicks modal_construction_start_time);
}
#endif