Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1844)

Unified Diff: extensions/common/features/simple_feature.h

Issue 2494653005: Support API aliases (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/common/features/simple_feature.h
diff --git a/extensions/common/features/simple_feature.h b/extensions/common/features/simple_feature.h
index 94b39fb9fd0c5b5f4bf5dce5a5f95bd7e1c17b7e..56df97f3921e1e007c6f8638f58ad9507ef9f6d2 100644
--- a/extensions/common/features/simple_feature.h
+++ b/extensions/common/features/simple_feature.h
@@ -76,6 +76,8 @@ class SimpleFeature : public Feature {
bool IsInternal() const override;
bool IsIdInBlacklist(const std::string& extension_id) const override;
bool IsIdInWhitelist(const std::string& extension_id) const override;
+ std::string GetAlias() const override;
+ std::string GetSource() const override;
static bool IsIdInArray(const std::string& extension_id,
const char* const array[],
@@ -123,6 +125,8 @@ class SimpleFeature : public Feature {
void set_noparent(bool no_parent) { no_parent_ = no_parent; }
void set_platforms(std::initializer_list<Platform> platforms);
void set_whitelist(std::initializer_list<const char* const> whitelist);
+ void set_alias(base::StringPiece alias);
+ void set_source(base::StringPiece source);
protected:
// Accessors used by subclasses in feature verification.
@@ -230,6 +234,8 @@ class SimpleFeature : public Feature {
bool is_internal_;
std::string command_line_switch_;
std::unique_ptr<version_info::Channel> channel_;
+ std::string alias_;
+ std::string source_;
DISALLOW_COPY_AND_ASSIGN(SimpleFeature);
};

Powered by Google App Engine
This is Rietveld 408576698