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

Unified Diff: chrome/renderer/extensions/chrome_v8_context.h

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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: chrome/renderer/extensions/chrome_v8_context.h
diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
index 11a4a87bec87d9c990898974345e32d13542e02c..4e7b61c3229a0acd89d93553f31e25955b4e9349 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -27,12 +27,15 @@ class RenderView;
class ChromeV8Context {
public:
enum ContextType {
+ // Blessed contexts such as normal chrome-extension:// URLs (including those
+ // which are iframes holding web accessible resources).
+ BLESSED,
+
+ // All content scripts.
CONTENT_SCRIPT,
- // TODO(kalman): for now, have this as OTHER, since we only currently need
- // know whether something is a content script or not. However, when
- // necessary this should enumerate the other types, such as FRAME.
- OTHER
+ // Unprivileged contexts, such as normal webpages.
+ UNPRIVILEGED
};
ChromeV8Context(v8::Handle<v8::Context> context,

Powered by Google App Engine
This is Rietveld 408576698