#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 {
const char kTranslate[] = …;
const size_t kMaxNumberOfParameters = …;
}
namespace extensions {
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) { … }
Warning Warning::CreateNetworkDelayWarning(const ExtensionId& extension_id) { … }
Warning Warning::CreateRepeatedCacheFlushesWarning(
const ExtensionId& extension_id) { … }
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) { … }
Warning Warning::CreateReloadTooFrequentWarning(
const ExtensionId& extension_id) { … }
Warning Warning::CreateRulesetFailedToLoadWarning(
const ExtensionId& extension_id) { … }
Warning Warning::CreateEnabledRuleCountExceededWarning(
const ExtensionId& extension_id) { … }
bool Warning::operator<(const Warning& other) const { … }
std::string Warning::GetLocalizedMessage(const ExtensionSet* extensions) const { … }
}