chromium/extensions/browser/warning_set.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 "extensions/browser/warning_set.h"

#include <stddef.h>

#include <tuple>

#include "base/files/file_path.h"
#include "base/strings/escape.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/extensions_client.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "ui/base/l10n/l10n_util.h"

BrowserThread;

namespace {
// Prefix for message parameters indicating that the parameter needs to
// be translated from an extension id to the extension name.
const char kTranslate[] =;
const size_t kMaxNumberOfParameters =;
}

namespace extensions {

//
// Warning
//

Warning::Warning(WarningType type,
                 const ExtensionId& extension_id,
                 int message_id,
                 const std::vector<std::string>& message_parameters)
    :{}

Warning::Warning(const Warning& other)
  :{}

Warning::~Warning() {}

Warning& Warning::operator=(const Warning& other) {}

// static
Warning Warning::CreateNetworkDelayWarning(const ExtensionId& extension_id) {}

// static
Warning Warning::CreateRepeatedCacheFlushesWarning(
    const ExtensionId& extension_id) {}

// static
Warning Warning::CreateDownloadFilenameConflictWarning(
    const std::string& losing_extension_id,
    const std::string& winning_extension_id,
    const base::FilePath& losing_filename,
    const base::FilePath& winning_filename) {}

// static
Warning Warning::CreateReloadTooFrequentWarning(
    const ExtensionId& extension_id) {}

// static
Warning Warning::CreateRulesetFailedToLoadWarning(
    const ExtensionId& extension_id) {}

// static
Warning Warning::CreateEnabledRuleCountExceededWarning(
    const ExtensionId& extension_id) {}

bool Warning::operator<(const Warning& other) const {}

std::string Warning::GetLocalizedMessage(const ExtensionSet* extensions) const {}

}  // namespace extensions