diff options
Diffstat (limited to 'extensions/renderer/script_context.h')
-rw-r--r-- | extensions/renderer/script_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/renderer/script_context.h b/extensions/renderer/script_context.h index 5fd87df..b34e426 100644 --- a/extensions/renderer/script_context.h +++ b/extensions/renderer/script_context.h @@ -36,6 +36,7 @@ class ScriptContext : public RequestSender::Source { public: ScriptContext(const v8::Handle<v8::Context>& context, blink::WebFrame* frame, + int world_id, const Extension* extension, Feature::Context context_type, const Extension* effective_extension, @@ -62,6 +63,8 @@ class ScriptContext : public RequestSender::Source { blink::WebFrame* web_frame() const { return web_frame_; } + int world_id() const { return world_id_; } + Feature::Context context_type() const { return context_type_; } Feature::Context effective_context_type() const { @@ -162,6 +165,9 @@ class ScriptContext : public RequestSender::Source { // object can outlive is destroyed asynchronously. blink::WebFrame* web_frame_; + // The world ID for the associated context, for debugging purposes. + const int world_id_; + // The extension associated with this context, or NULL if there is none. This // might be a hosted app in the case that this context is hosting a web URL. scoped_refptr<const Extension> extension_; |