blob: 4f1a1c06da586313ee1202ad62b1a085d219fae9 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/declarative_net_request/constants.h"
namespace extensions {
namespace declarative_net_request {
const char kErrorResourceTypeDuplicated[] =
"*: Rule at index * includes and excludes the same resource.";
const char kErrorEmptyRedirectRuleKey[] =
"*: Rule at index * does not specify the value for * key. This is required "
"for redirect rules.";
const char kErrorInvalidRuleKey[] =
"*: Rule at index * has an invalid value for * key. This should be greater "
"than or equal to *.";
const char kErrorNoApplicableResourceTypes[] =
"*: Rule at index * is not applicable to any resource type.";
const char kErrorEmptyList[] =
"*: Rule at index * cannot have an empty list as the value for * key.";
const char kErrorEmptyUrlFilter[] =
"*: Rule at index * cannot have an empty value for * key.";
const char kErrorInvalidRedirectUrl[] =
"*: Rule at index * does not provide a valid URL for * key.";
const char kErrorDuplicateIDs[] =
"*: Rule at index * does not have a unique ID.";
// Don't surface the actual error to the user, since it's an implementation
// detail.
const char kErrorPersisting[] = "*: Rules file could not be parsed.";
const char kErrorListNotPassed[] = "*: Rules file must contain a list.";
const char kErrorNonAscii[] =
"*: Rule at index * cannot have non-ascii characters as part of \"*\" key.";
const char kRuleCountExceeded[] =
"Declarative Net Request: Rule count exceeded. Some rules were ignored.";
const char kRuleNotParsedWarning[] =
"Declarative Net Request: Rule at index * couldn't be parsed.";
const char kTooManyParseFailuresWarning[] =
"Declarative Net Request: Too many rule parse failures; Reporting the "
"first *.";
const char kIndexAndPersistRulesTimeHistogram[] =
"Extensions.DeclarativeNetRequest.IndexAndPersistRulesTime";
const char kIndexRulesTimeHistogram[] =
"Extensions.DeclarativeNetRequest.IndexRulesTime";
const char kManifestRulesCountHistogram[] =
"Extensions.DeclarativeNetRequest.ManifestRulesCount";
} // namespace declarative_net_request
} // namespace extensions