chromium/components/supervised_user/core/browser/web_content_handler.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;

// Records the outcome of the local web approval flow.
void RecordLocalWebApprovalResultMetric(
    supervised_user::WebContentHandler::LocalApprovalResult result) {}

// Records the duration of a complete local web approval flow.
void RecordTimeToApprovalDurationMetric(base::TimeDelta durationMs) {}

std::string LocalApprovalResultToString(
    supervised_user::WebContentHandler::LocalApprovalResult value) {}

}  // namespace

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) {}

// static
const char* WebContentHandler::GetLocalApprovalDurationMillisecondsHistogram() {}

// static
const char* WebContentHandler::GetLocalApprovalResultHistogram() {}

}  // namespace supervised_user