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

Unified Diff: extensions/common/constants.h

Issue 348313003: Create withheld permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: extensions/common/constants.h
diff --git a/extensions/common/constants.h b/extensions/common/constants.h
index 66fe2ba4d1e6b9250a5bcc29a3940945fa914c50..c95fab6bfb57f7826fceefb979d9ab0641c48fe5 100644
--- a/extensions/common/constants.h
+++ b/extensions/common/constants.h
@@ -139,6 +139,18 @@ extern const size_t kNumExtensionIconSizes;
extern const int kExtensionActionIconSizes[];
extern const size_t kNumExtensionActionIconSizes;
+// The type of injected script.
+enum InjectedScriptType {
+ // A content script specified in the extension's manifest.
+ CONTENT_SCRIPT,
+ // A script injected via, e.g. tabs.executeScript().
+ PROGRAMMATIC_SCRIPT
+};
+
+// The last type of injected script; used for enum verification in IPC.
+// Update this if you add more injected script types!
+const InjectedScriptType INJECTED_SCRIPT_LAST = PROGRAMMATIC_SCRIPT;
+
} // namespace extension_misc
#endif // EXTENSIONS_COMMON_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698