chromium/chrome/browser/apps/link_capturing/enable_link_capturing_infobar_delegate.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 "chrome/browser/apps/link_capturing/enable_link_capturing_infobar_delegate.h"

#include <memory>

#include "base/functional/callback_helpers.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/numerics/clamped_math.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "chrome/browser/web_applications/web_app_ui_manager.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobar_delegate.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/vector_icon_types.h"

namespace apps {
namespace {
void IncrementIgnoreCount(webapps::AppId app_id,
                          web_app::AppLock& app_lock,
                          base::Value::Dict& debug_result) {}

void IncrementDismissCount(webapps::AppId app_id,
                           web_app::AppLock& app_lock,
                           base::Value::Dict& debug_result) {}
}  // namespace

// Searches the toolbar on this web contents for this infobar, and returns it
// if found.
infobars::InfoBar* EnableLinkCapturingInfoBarDelegate::FindInfoBar(
    content::WebContents* web_contents) {}

// static
std::unique_ptr<EnableLinkCapturingInfoBarDelegate>
EnableLinkCapturingInfoBarDelegate::MaybeCreate(
    content::WebContents* web_contents,
    const std::string& app_id) {}

// static
void EnableLinkCapturingInfoBarDelegate::RemoveInfoBar(
    content::WebContents* web_contents) {}

EnableLinkCapturingInfoBarDelegate::~EnableLinkCapturingInfoBarDelegate() {}

infobars::InfoBarDelegate::InfoBarIdentifier
EnableLinkCapturingInfoBarDelegate::GetIdentifier() const {}

std::u16string EnableLinkCapturingInfoBarDelegate::GetMessageText() const {}

std::u16string EnableLinkCapturingInfoBarDelegate::GetButtonLabel(
    InfoBarButton button) const {}

const gfx::VectorIcon& EnableLinkCapturingInfoBarDelegate::GetVectorIcon()
    const {}

bool EnableLinkCapturingInfoBarDelegate::IsCloseable() const {}

bool EnableLinkCapturingInfoBarDelegate::Accept() {}

bool EnableLinkCapturingInfoBarDelegate::Cancel() {}

EnableLinkCapturingInfoBarDelegate::EnableLinkCapturingInfoBarDelegate(
    Profile& profile,
    const webapps::AppId& app_id)
    :{}

}  // namespace apps