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

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

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/renderer/render_frame_observer.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 "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 struct WebPluginInfo; 19 struct WebPluginInfo;
20 20
21 // This interface wraps functionality, which is specific to frames, such as 21 // This interface wraps functionality, which is specific to frames, such as
22 // navigation. It provides communication with a corresponding RenderFrameHost 22 // navigation. It provides communication with a corresponding RenderFrameHost
23 // in the browser process. 23 // in the browser process.
24 class CONTENT_EXPORT RenderFrame : public IPC::Listener, 24 class CONTENT_EXPORT RenderFrame : public IPC::Listener,
25 public IPC::Sender { 25 public IPC::Sender {
26 public: 26 public:
27 // Get the routing ID of the frame.
28 virtual int GetRoutingID() = 0;
29
27 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no 30 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no
28 // plugin was found. 31 // plugin was found.
29 virtual blink::WebPlugin* CreatePlugin( 32 virtual blink::WebPlugin* CreatePlugin(
30 blink::WebFrame* frame, 33 blink::WebFrame* frame,
31 const WebPluginInfo& info, 34 const WebPluginInfo& info,
32 const blink::WebPluginParams& params) = 0; 35 const blink::WebPluginParams& params) = 0;
33 36
34 protected: 37 protected:
35 virtual ~RenderFrame() {} 38 virtual ~RenderFrame() {}
36 39
37 private: 40 private:
38 // This interface should only be implemented inside content. 41 // This interface should only be implemented inside content.
39 friend class RenderFrameImpl; 42 friend class RenderFrameImpl;
40 RenderFrame() {} 43 RenderFrame() {}
41 }; 44 };
42 45
43 } // namespace content 46 } // namespace content
44 47
45 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 48 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/renderer/render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698