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

Side by Side Diff: content/public/renderer/render_frame.h

Issue 547093002: Return WebLocalFrame from RenderFrame::GetWebFrame(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/prefetch_helper.cc ('k') | content/renderer/history_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
(...skipping 27 matching lines...) Expand all
38 // Returns the RenderFrame given a WebFrame. 38 // Returns the RenderFrame given a WebFrame.
39 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); 39 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame);
40 40
41 // Returns the RenderView associated with this frame. 41 // Returns the RenderView associated with this frame.
42 virtual RenderView* GetRenderView() = 0; 42 virtual RenderView* GetRenderView() = 0;
43 43
44 // Get the routing ID of the frame. 44 // Get the routing ID of the frame.
45 virtual int GetRoutingID() = 0; 45 virtual int GetRoutingID() = 0;
46 46
47 // Returns the associated WebFrame. 47 // Returns the associated WebFrame.
48 virtual blink::WebFrame* GetWebFrame() = 0; 48 virtual blink::WebLocalFrame* GetWebFrame() = 0;
49 49
50 // Gets WebKit related preferences associated with this frame. 50 // Gets WebKit related preferences associated with this frame.
51 virtual WebPreferences& GetWebkitPreferences() = 0; 51 virtual WebPreferences& GetWebkitPreferences() = 0;
52 52
53 // Shows a context menu with the given information. The given client will 53 // Shows a context menu with the given information. The given client will
54 // be called with the result. 54 // be called with the result.
55 // 55 //
56 // The request ID will be returned by this function. This is passed to the 56 // The request ID will be returned by this function. This is passed to the
57 // client functions for identification. 57 // client functions for identification.
58 // 58 //
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 private: 105 private:
106 // This interface should only be implemented inside content. 106 // This interface should only be implemented inside content.
107 friend class RenderFrameImpl; 107 friend class RenderFrameImpl;
108 RenderFrame() {} 108 RenderFrame() {}
109 }; 109 };
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/renderer/prefetch_helper.cc ('k') | content/renderer/history_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698