// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CONSTANTS_H_ #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CONSTANTS_H_ #include <string_view> #include "base/files/file_path.h" namespace subresource_filter { // Paths under the top level directory // ------------------------------------ // The name of the subdirectory under the top-level directory that stores // versions of indexed rulesets. Files that belong to an IndexedRulesetVersion // are stored under /format_version/content_version/. extern const base::FilePath::CharType kIndexedRulesetBaseDirectoryName[]; // The name of the subdirectory under the top-level directory that stores // versions of unindexed rulesets downloaded through the component updater. extern const base::FilePath::CharType kUnindexedRulesetBaseDirectoryName[]; // Paths under IndexedRulesetVersion::GetSubdirectoryPathForVersion // ---------------------------------------------------------------- // The name of the file that actually stores the ruleset contents. extern const base::FilePath::CharType kRulesetDataFileName[]; // The name of the applicable license file, if any, stored next to the ruleset. extern const base::FilePath::CharType kLicenseFileName[]; // The name of the sentinel file that is temporarily stored to indicate that the // ruleset is being indexed. extern const base::FilePath::CharType kSentinelFileName[]; // Paths under kUnindexedRulesetBaseDirectoryName // ---------------------------------------------- // The name of the license file associated with the unindex ruleset. extern const base::FilePath::CharType kUnindexedRulesetLicenseFileName[]; // The name of the file that stores the unindexed filtering rules. extern const base::FilePath::CharType kUnindexedRulesetDataFileName[]; // The name of the filter. This is used for metrics logging. inline constexpr std::string_view kUmaFilterTag = …; // Console message to be displayed on activation. constexpr char kActivationConsoleMessage[] = …; constexpr char kActivationWarningConsoleMessage[] = …; // Console message to be displayed on disallowing subframe. constexpr char kDisallowChildFrameConsoleMessageFormat[] = …; constexpr char kLearnMoreLink[] = …; } // namespace subresource_filter #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CONSTANTS_H_