#ifndef COMPONENTS_PLUS_ADDRESSES_METRICS_PLUS_ADDRESS_METRICS_H_
#define COMPONENTS_PLUS_ADDRESSES_METRICS_PLUS_ADDRESS_METRICS_H_
#include <string>
#include "base/time/time.h"
#include "components/autofill/core/browser/autofill_plus_address_delegate.h"
#include "components/plus_addresses/plus_address_types.h"
class GoogleServiceAuthError;
namespace plus_addresses::metrics {
enum class PlusAddressModalEvent { … };
enum class PlusAddressModalCompletionStatus { … };
void RecordModalEvent(PlusAddressModalEvent plus_address_modal_event,
bool is_notice_screen);
void RecordModalShownOutcome(PlusAddressModalCompletionStatus status,
base::TimeDelta modal_shown_duration,
int refresh_count,
bool is_notice_screen);
void RecordAutofillSuggestionEvent(
autofill::AutofillPlusAddressDelegate::SuggestionEvent
plus_address_autofill_suggestion_event);
void RecordNetworkRequestLatency(PlusAddressNetworkRequestType type,
base::TimeDelta request_latency);
void RecordNetworkRequestResponseCode(PlusAddressNetworkRequestType type,
int response_code);
void RecordNetworkRequestResponseSize(PlusAddressNetworkRequestType type,
int response_size);
void RecordNetworkRequestOauthError(GoogleServiceAuthError error);
std::string PlusAddressNetworkRequestTypeToString(
PlusAddressNetworkRequestType type);
std::string PlusAddressModalCompletionStatusToString(
PlusAddressModalCompletionStatus status);
}
#endif