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

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

Issue 2494653005: Support API aliases (Closed)
Patch Set: . 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
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/common/features/feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/feature.h
diff --git a/extensions/common/features/feature.h b/extensions/common/features/feature.h
index cc3ee7f3cb13b4d7aa11c25a8fecccb9e806defe..b04dba2f2a851c16b73b29d99f9cd041298daef6 100644
--- a/extensions/common/features/feature.h
+++ b/extensions/common/features/feature.h
@@ -94,6 +94,10 @@ class Feature {
// Note that this arg is passed as a StringPiece to avoid a lot of bloat from
// inlined std::string code.
void set_name(base::StringPiece name);
+ const std::string& alias() const { return alias_; }
+ void set_alias(base::StringPiece alias);
+ const std::string& source() const { return source_; }
+ void set_source(base::StringPiece source);
bool no_parent() const { return no_parent_; }
// Gets the platform the code is currently running on.
@@ -150,6 +154,8 @@ class Feature {
protected:
std::string name_;
+ std::string alias_;
+ std::string source_;
bool no_parent_;
// TODO(devlin): Remove this once we set the feature channel for tests.
bool check_channel_;
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/common/features/feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698