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 } |
| 18 |
| 19 RenderFrameHostImpl::~RenderFrameHostImpl() { |
| 20 } |
| 21 |
| 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); |
| 26 } |
| 27 |
| 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); |
| 32 } |
| 33 |
| 34 } // namespace content |
OLD | NEW |