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 #include "content/browser/renderer_host/render_frame_host_impl.h" | |
6 | |
7 #include "content/browser/renderer_host/render_view_host_impl.h" | |
8 | |
9 namespace content { | |
10 | |
11 RenderFrameHostImpl::RenderFrameHostImpl( | |
12 RenderViewHostImpl* render_view_host, | |
13 int routing_id, | |
14 bool swapped_out) | |
15 : render_view_host_(render_view_host), | |
16 routing_id_(routing_id), | |
17 is_swapped_out_(swapped_out) { | |
18 } | |
19 | |
20 RenderFrameHostImpl::~RenderFrameHostImpl() { | |
21 } | |
22 | |
23 bool RenderFrameHostImpl::Send(IPC::Message* message) { | |
24 // Use the RenderViewHost object to send the message. It inherits it from | |
25 // RenderWidgetHost, which ultimately uses the current process Send. | |
Charlie Reis
2013/05/30 00:41:53
nit: process's |Send|.
nasko
2013/05/30 17:07:03
Done.
| |
26 return render_view_host_->Send(message); | |
27 } | |
28 | |
29 bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { | |
30 // Pass the message up to the RenderViewHost, until we have enough | |
31 // infrastructure to start processing messages in this object. | |
32 return render_view_host_->OnMessageReceived(msg); | |
33 } | |
34 | |
35 } // namespace content | |
OLD | NEW |