// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_ #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_ #include <map> #include <set> #include <string> #include <string_view> #include "extensions/common/context_data.h" #include "extensions/common/hashed_extension_id.h" #include "extensions/common/manifest.h" #include "extensions/common/mojom/context_type.mojom-forward.h" #include "extensions/common/mojom/manifest.mojom-shared.h" class GURL; namespace extensions { inline constexpr int kUnspecifiedContextId = …; class Extension; // Represents a single feature accessible to an extension developer, such as a // top-level manifest key, a permission, or a programmatic API. A feature can // express requirements for where it can be accessed, and supports testing // support for those requirements. If platforms are not specified, then feature // is available on all platforms. // // See //chrome/common/extensions/api/_features.md for a description of feature // usage and types. class Feature { … }; } // namespace extensions #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_