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

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: aa comments 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..673ebac7b897522863823f62b819a8e6520316d9 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -27,12 +27,19 @@ class RenderView;
class ChromeV8Context {
public:
enum ContextType {
+ // Blessed contexts such as chrome-extension:// URLs that run in their own
+ // (extension) processes.
+ PRIVILEGED,
Aaron Boodman 2012/02/29 01:03:58 PRIVILEGED_EXTENSION_PAGE, UNPRIVILEGED_EXTENSION_
not at google - send to devlin 2012/03/05 07:46:54 Done. As discussed: just used the Features versio
+
+ // 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
+ // Extension contexts that are unprivileged, such as web accessible
+ // resoures that are running in iframes.
+ UNPRIVILEGED,
+
+ // Normal web pages.
+ WEB_PAGE
};
ChromeV8Context(v8::Handle<v8::Context> context,

Powered by Google App Engine
This is Rietveld 408576698