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

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: Fixes based on initial feedback from Charlie. 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 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 18:26:59 Minor nit: process's
nasko 2013/05/30 19:03:48 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698