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

Unified Diff: extensions/renderer/script_context.h

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on tear down Created 6 years, 4 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
« no previous file with comments | « extensions/browser/guest_view/guest_view_manager.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
//
« no previous file with comments | « extensions/browser/guest_view/guest_view_manager.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698