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

Unified Diff: content/public/renderer/render_frame.h

Issue 138333006: Now that RenderFrame is 1:1 with WebFrame, add the associated getters and start cleaning up assumpt… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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: content/public/renderer/render_frame.h
===================================================================
--- content/public/renderer/render_frame.h (revision 244810)
+++ content/public/renderer/render_frame.h (working copy)
@@ -31,12 +31,18 @@
class CONTENT_EXPORT RenderFrame : public IPC::Listener,
public IPC::Sender {
public:
+ // Returns the RenderFrame given a WebFrame.
+ static RenderFrame* FromWebFrame(blink::WebFrame* web_frame);
+
// Returns the RenderView associated with this frame.
virtual RenderView* GetRenderView() = 0;
// Get the routing ID of the frame.
virtual int GetRoutingID() = 0;
+ // Returns the associated WebFrame.
+ virtual blink::WebFrame* GetWebFrame() = 0;
+
// Gets WebKit related preferences associated with this frame.
virtual WebPreferences& GetWebkitPreferences() = 0;

Powered by Google App Engine
This is Rietveld 408576698