OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "content/public/browser/render_frame_host.h" | |
10 | |
11 namespace content { | |
12 | |
13 class RenderViewHostImpl; | |
14 | |
15 | |
Charlie Reis
2013/05/30 00:41:53
nit: Remove extra blank line.
nasko
2013/05/30 17:07:03
Done.
| |
16 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { | |
17 public: | |
18 RenderFrameHostImpl( | |
19 RenderViewHostImpl* render_view_host, | |
20 int routing_id, | |
21 bool swapped_out); | |
22 virtual ~RenderFrameHostImpl(); | |
23 | |
24 // IPC::Sender | |
25 virtual bool Send(IPC::Message* msg) OVERRIDE; | |
26 | |
27 // IPC::Listener | |
28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | |
29 | |
30 int routing_id() { return routing_id_; } | |
31 | |
32 private: | |
33 friend class TestRenderViewHost; | |
34 | |
35 RenderViewHostImpl* render_view_host_; | |
36 | |
37 int routing_id_; | |
38 | |
39 // Whether this RenderFrameHost is currently swapped out, such that the | |
40 // frame is being rendered by another process. | |
41 bool is_swapped_out_; | |
Charlie Reis
2013/05/30 00:41:53
Do we need this yet?
nasko
2013/05/30 17:07:03
Not yet, but it made the pattern of constructing t
Charlie Reis
2013/05/30 18:26:59
I just don't want people (myself included) to thin
nasko
2013/05/30 19:03:48
Done.
| |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | |
44 }; | |
45 | |
46 } // namespace content | |
47 | |
48 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ | |
OLD | NEW |