#include "components/supervised_user/core/browser/web_content_handler.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "components/supervised_user/core/browser/supervised_user_settings_service.h"
namespace {
constexpr char kLocalWebApprovalDurationHistogramName[] = …;
constexpr char kLocalWebApprovalResultHistogramName[] = …;
void RecordLocalWebApprovalResultMetric(
supervised_user::WebContentHandler::LocalApprovalResult result) { … }
void RecordTimeToApprovalDurationMetric(base::TimeDelta durationMs) { … }
std::string LocalApprovalResultToString(
supervised_user::WebContentHandler::LocalApprovalResult value) { … }
}
namespace supervised_user {
WebContentHandler::WebContentHandler() = default;
WebContentHandler::~WebContentHandler() = default;
void WebContentHandler::OnLocalApprovalRequestCompleted(
supervised_user::SupervisedUserSettingsService& settings_service,
const GURL& url,
base::TimeTicks start_time,
LocalApprovalResult approval_result) { … }
const char* WebContentHandler::GetLocalApprovalDurationMillisecondsHistogram() { … }
const char* WebContentHandler::GetLocalApprovalResultHistogram() { … }
}