Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: content/browser/renderer_host/render_frame_host_impl.cc

Issue 16032007: Create RenderFrame/RenderFrameHost for the main frame of a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing routing ID expectations. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_frame_host_impl.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698