| Index: extensions/renderer/script_context.h
|
| diff --git a/extensions/renderer/script_context.h b/extensions/renderer/script_context.h
|
| index db7130a225366a65896c8313b608fc32e99c2e64..4b663670bbd8794055e5eadf47d9b99514bc6040 100644
|
| --- a/extensions/renderer/script_context.h
|
| +++ b/extensions/renderer/script_context.h
|
| @@ -22,6 +22,7 @@ class WebFrame;
|
| }
|
|
|
| namespace content {
|
| +class RenderFrame;
|
| class RenderView;
|
| }
|
|
|
| @@ -73,6 +74,10 @@ class ScriptContext : public RequestSender::Source, public gin::Runner {
|
| // context is in the process of being destroyed.
|
| content::RenderView* GetRenderView() const;
|
|
|
| + // Returns the RenderFrame associated with this context. Can return NULL if
|
| + // the context is in the process of being destroyed.
|
| + content::RenderFrame* GetRenderFrame() const;
|
| +
|
| // Runs |function| with appropriate scopes. Doesn't catch exceptions, callers
|
| // must do that if they want.
|
| //
|
|
|