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

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

Issue 107893003: Make the renderer-side prerendering code use RenderFrames instead of RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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 | Annotate | Revision Log
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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "ipc/ipc_listener.h" 9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebFrame; 13 class WebFrame;
14 class WebPlugin; 14 class WebPlugin;
15 struct WebPluginParams; 15 struct WebPluginParams;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 class RenderView;
19 struct WebPluginInfo; 20 struct WebPluginInfo;
20 21
21 // This interface wraps functionality, which is specific to frames, such as 22 // This interface wraps functionality, which is specific to frames, such as
22 // navigation. It provides communication with a corresponding RenderFrameHost 23 // navigation. It provides communication with a corresponding RenderFrameHost
23 // in the browser process. 24 // in the browser process.
24 class CONTENT_EXPORT RenderFrame : public IPC::Listener, 25 class CONTENT_EXPORT RenderFrame : public IPC::Listener,
25 public IPC::Sender { 26 public IPC::Sender {
26 public: 27 public:
28 // Returns the RenderView associated with this frame.
29 virtual RenderView* GetRenderView() = 0;
30
27 // Get the routing ID of the frame. 31 // Get the routing ID of the frame.
28 virtual int GetRoutingID() = 0; 32 virtual int GetRoutingID() = 0;
29 33
30 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no 34 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no
31 // plugin was found. 35 // plugin was found.
32 virtual blink::WebPlugin* CreatePlugin( 36 virtual blink::WebPlugin* CreatePlugin(
33 blink::WebFrame* frame, 37 blink::WebFrame* frame,
34 const WebPluginInfo& info, 38 const WebPluginInfo& info,
35 const blink::WebPluginParams& params) = 0; 39 const blink::WebPluginParams& params) = 0;
36 40
37 protected: 41 protected:
38 virtual ~RenderFrame() {} 42 virtual ~RenderFrame() {}
39 43
40 private: 44 private:
41 // This interface should only be implemented inside content. 45 // This interface should only be implemented inside content.
42 friend class RenderFrameImpl; 46 friend class RenderFrameImpl;
43 RenderFrame() {} 47 RenderFrame() {}
44 }; 48 };
45 49
46 } // namespace content 50 } // namespace content
47 51
48 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 52 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698