Chromium Code Reviews| Index: content/public/renderer/render_frame.h |
| diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h |
| index 335c2234416af8ce9cc851c4274ef07eea26b823..95a86d8223e38f3abd3576982bce30aae415afb3 100644 |
| --- a/content/public/renderer/render_frame.h |
| +++ b/content/public/renderer/render_frame.h |
| @@ -57,6 +57,7 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener, |
| public IPC::Sender { |
| public: |
| // Returns the RenderFrame given a WebFrame. |
| + static const RenderFrame* FromWebFrame(const blink::WebFrame* web_frame); |
|
ncarter (slow)
2015/10/08 20:57:55
I appreciate the justification you gave for adding
Łukasz Anforowicz
2015/10/09 16:54:08
Done:
- Removed const-related changes
- Added a
|
| static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); |
| // Returns the RenderFrame given a routing id. |
| @@ -66,7 +67,7 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener, |
| virtual RenderView* GetRenderView() = 0; |
| // Get the routing ID of the frame. |
| - virtual int GetRoutingID() = 0; |
| + virtual int GetRoutingID() const = 0; |
|
ncarter (slow)
2015/10/08 20:57:55
Per the above, const methods in the content/public
Łukasz Anforowicz
2015/10/09 16:54:08
Done.
|
| // Returns the associated WebFrame. |
| virtual blink::WebLocalFrame* GetWebFrame() = 0; |