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
3 // found in the LICENSE file.
5 #include "content/browser/renderer_host/render_frame_host_impl.h"
7 #include "content/browser/renderer_host/render_view_host_impl.h"
11 RenderFrameHostImpl::RenderFrameHostImpl(
12 RenderViewHostImpl
* render_view_host
,
15 : render_view_host_(render_view_host
),
16 routing_id_(routing_id
) {
19 RenderFrameHostImpl::~RenderFrameHostImpl() {
22 bool RenderFrameHostImpl::Send(IPC::Message
* message
) {
23 // Use the RenderViewHost object to send the message. It inherits it from
24 // RenderWidgetHost, which ultimately uses the current process's |Send|.
25 return render_view_host_
->Send(message
);
28 bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message
&msg
) {
29 // Pass the message up to the RenderViewHost, until we have enough
30 // infrastructure to start processing messages in this object.
31 return render_view_host_
->OnMessageReceived(msg
);
34 } // namespace content