Chromium Code Reviews| 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, |