chromium/chrome/browser/extensions/warning_badge_service.cc

// Copyright 2012 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/extensions/warning_badge_service.h"

#include <stddef.h>

#include <memory>

#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/extensions/warning_badge_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/global_error/global_error.h"
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"

namespace extensions {

namespace {
// Non-modal GlobalError implementation that warns the user if extensions
// created warnings or errors. If the user clicks on the wrench menu, the user
// is redirected to chrome://extensions to inspect the errors.
class ErrorBadge : public GlobalError {};

ErrorBadge::ErrorBadge(WarningBadgeService* badge_service)
    :{}

ErrorBadge::~ErrorBadge() {}

bool ErrorBadge::HasMenuItem() {}

int ErrorBadge::MenuItemCommandID() {}

std::u16string ErrorBadge::MenuItemLabel() {}

void ErrorBadge::ExecuteMenuItem(Browser* browser) {}

bool ErrorBadge::HasBubbleView() {}

bool ErrorBadge::HasShownBubbleView() {}

void ErrorBadge::ShowBubbleView(Browser* browser) {}

GlobalErrorBubbleViewBase* ErrorBadge::GetBubbleView() {}

// static
int ErrorBadge::GetMenuItemCommandID() {}

}  // namespace

WarningBadgeService::WarningBadgeService(Profile* profile) :{}

WarningBadgeService::~WarningBadgeService() {}

// static
WarningBadgeService* WarningBadgeService::Get(
    content::BrowserContext* context) {}

void WarningBadgeService::SuppressCurrentWarnings() {}

const WarningSet& WarningBadgeService::GetCurrentWarnings() const {}

void WarningBadgeService::ExtensionWarningsChanged(
    const ExtensionIdSet& affected_extensions) {}

void WarningBadgeService::UpdateBadgeStatus() {}

void WarningBadgeService::ShowBadge(bool show) {}

}  // namespace extensions