chromium/extensions/browser/api/declarative_net_request/constants.cc

// Copyright 2017 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/api/declarative_net_request/constants.h"

#include "extensions/common/constants.h"
#include "url/url_constants.h"

namespace extensions::declarative_net_request {

const char* const kAllowedTransformSchemes[4] =;

const char kErrorRequestMethodDuplicated[] =;
const char kErrorResourceTypeDuplicated[] =;
const char kErrorInvalidRuleKey[] =;
const char kErrorNoApplicableResourceTypes[] =;
const char kErrorEmptyList[] =;
const char kErrorEmptyKey[] =;
const char kErrorInvalidRedirectUrl[] =;
const char kErrorDuplicateIDs[] =;
// Don't surface the actual error to the user, since it's an implementation
// detail.
const char kErrorPersisting[] =;
const char kErrorNonAscii[] =;
const char kErrorInvalidKey[] =;
const char kErrorInvalidTransformScheme[] =;
const char kErrorQueryAndTransformBothSpecified[] =;
const char kErrorDomainsAndInitiatorDomainsBothSpecified[] =;
const char kErrorJavascriptRedirect[] =;
const char kErrorMultipleFilters[] =;
const char kErrorRegexSubstitutionWithoutFilter[] =;
const char kErrorInvalidAllowAllRequestsResourceType[] =;
const char kErrorRegexTooLarge[] =;
const char kErrorNoHeaderListsSpecified[] =;
const char kErrorInvalidModifyHeaderName[] =;
const char kErrorInvalidModifyHeaderValue[] =;
const char kErrorNoHeaderValueSpecified[] =;
const char kErrorHeaderValuePresent[] =;
const char kErrorAppendInvalidRequestHeader[] =;
const char kErrorTabIdsOnNonSessionRule[] =;
const char kErrorTabIdDuplicated[] =;
const char kErrorInvalidMatchingHeaderName[] =;
const char kErrorInvalidMatchingHeaderValue[] =;
const char kErrorResponseHeaderDuplicated[] =;
const char kErrorResponseHeaderRuleCannotModifyRequestHeaders[] =;

const char kErrorListNotPassed[] =;

const char kRuleCountExceeded[] =;
const char kRegexRuleCountExceeded[] =;
const char kEnabledRuleCountExceeded[] =;
const char kEnabledRegexRuleCountExceeded[] =;
const char kRuleNotParsedWarning[] =;
const char kTooManyParseFailuresWarning[] =;
const char kIndexingRuleLimitExceeded[] =;
const char kInternalErrorUpdatingDynamicRules[] =;
const char kInternalErrorGettingDynamicRules[] =;
const char kDynamicRuleCountExceeded[] =;

// TODO(crbug.com/40282671): Once the documentation is updated, add a link to
// the page detailing what safe/unsafe rules are.
const char kDynamicUnsafeRuleCountExceeded[] =;
const char kDynamicRegexRuleCountExceeded[] =;

const char kSessionRuleCountExceeded[] =;

// TODO(crbug.com/40282671): Once the documentation is updated, add a link to
// the page detailing what safe/unsafe rules are.
const char kSessionUnsafeRuleCountExceeded[] =;
const char kSessionRegexRuleCountExceeded[] =;

const char kInvalidRulesetIDError[] =;
const char kEnabledRulesetsRuleCountExceeded[] =;
const char kEnabledRulesetsRegexRuleCountExceeded[] =;
const char kInternalErrorUpdatingEnabledRulesets[] =;
const char kEnabledRulesetCountExceeded[] =;

const char kDisabledStaticRuleCountExceeded[] =;

const char kTabNotFoundError[] =;
const char kIncrementActionCountWithoutUseAsBadgeTextError[] =;

const char kInvalidTestURLError[] =;
const char kInvalidTestInitiatorError[] =;
const char kInvalidTestTabIdError[] =;
const char kInvalidResponseHeaderObjectError[] =;
const char kInvalidResponseHeaderNameError[] =;
const char kInvalidResponseHeaderValueError[] =;

const char kIndexAndPersistRulesTimeHistogram[] =;
const char kManifestEnabledRulesCountHistogram[] =;
const char kUpdateDynamicRulesStatusHistogram[] =;
const char kReadDynamicRulesJSONStatusHistogram[] =;
const char kIsLargeRegexHistogram[] =;
const char kRegexRuleSizeHistogram[] =;
const char kLoadRulesetResultHistogram[] =;

const char kActionCountPlaceholderBadgeText[] =;

const char kErrorGetMatchedRulesMissingPermissions[] =;

const char kEmbedderConditionsBufferIdentifier[] =;

}  // namespace extensions::declarative_net_request