OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | |
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "content/common/content_export.h" | |
10 #include "ipc/ipc_listener.h" | |
11 #include "ipc/ipc_sender.h" | |
12 | |
13 #include "third_party/WebKit/public/web/WebFrameClient.h" | |
14 #include "third_party/WebKit/public/web/WebRemoteFrame.h" | |
15 | |
16 namespace content { | |
17 | |
18 class RenderFrameImpl; | |
19 class RenderViewImpl; | |
20 | |
21 class CONTENT_EXPORT RenderFrameProxy | |
Charlie Reis
2014/05/15 00:32:50
Can you add a class-level comment for this, mainly
nasko
2014/05/15 18:47:13
Done.
| |
22 : public IPC::Listener, | |
23 public IPC::Sender, | |
24 NON_EXPORTED_BASE(public blink::WebFrameClient) { | |
25 public: | |
26 static RenderFrameProxy* CreateFrameProxy(int routing_id, | |
27 int frame_routing_id); | |
28 | |
29 // Returns the RenderFrameProxy for the given routing ID. | |
30 static RenderFrameProxy* FromRoutingID(int routing_id); | |
31 | |
32 virtual ~RenderFrameProxy(); | |
33 | |
34 // IPC::Sender | |
35 virtual bool Send(IPC::Message* msg) OVERRIDE; | |
36 | |
37 RenderFrameImpl* render_frame() { | |
38 return render_frame_; | |
39 } | |
40 | |
41 void set_render_frame(RenderFrameImpl* render_frame) { | |
42 render_frame_ = render_frame; | |
43 } | |
44 | |
45 private: | |
46 RenderFrameProxy(int routing_id, int frame_routing_id); | |
47 | |
48 // IPC::Listener | |
49 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | |
50 | |
51 // IPC handlers | |
52 void OnDeleteProxy(); | |
53 | |
54 int routing_id_; | |
55 int frame_routing_id_; | |
56 RenderFrameImpl* render_frame_; | |
57 | |
58 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | |
59 }; | |
60 | |
61 } // namespace | |
62 | |
63 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | |
OLD | NEW |