OLD | NEW |
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_ |
OLD | NEW |