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

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

Issue 2268173003: [Extensions] Add feature documentation for contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 months 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 | « chrome/common/extensions/api/_features.md ('k') | no next file » | 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 a570b9a93f7f62db0bd4cf2880551303635fdf03..dc91e9e7eedb658525a0280cb87c6273aacc0a61 100644
--- a/extensions/common/features/feature.h
+++ b/extensions/common/features/feature.h
@@ -29,27 +29,14 @@ class Feature {
enum Context {
UNSPECIFIED_CONTEXT,
- // A context in a privileged extension process.
+ // See chrome/common/extensions/api/_features.md for a description of these
+ // contexts.
BLESSED_EXTENSION_CONTEXT,
-
- // A context in an unprivileged extension process.
UNBLESSED_EXTENSION_CONTEXT,
-
- // A context from a content script.
CONTENT_SCRIPT_CONTEXT,
-
- // A normal web page. This should have an associated URL matching pattern.
WEB_PAGE_CONTEXT,
-
- // A web page context which has been blessed by the user. Typically this
- // will be via the installation of a hosted app, so this may host an
- // extension. This is not affected by the URL matching pattern.
BLESSED_WEB_PAGE_CONTEXT,
-
- // A page within webui.
WEBUI_CONTEXT,
-
- // A context belonging to a service worker.
SERVICE_WORKER_CONTEXT,
};
« no previous file with comments | « chrome/common/extensions/api/_features.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698