blob: 8c6d03b968444fee066833f7fa325c3446d15eed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/render_frame_impl.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
namespace content {
RenderFrameImpl::RenderFrameImpl(RenderViewImpl* render_view, int routing_id)
: render_view_(render_view),
routing_id_(routing_id) {
}
RenderFrameImpl::~RenderFrameImpl() {
}
bool RenderFrameImpl::Send(IPC::Message* message) {
// TODO(nasko): Move away from using the RenderView's Send method once we
// have enough infrastructure and state to make the right checks here.
return render_view_->Send(message);
}
bool RenderFrameImpl::OnMessageReceived(const IPC::Message &msg) {
// Pass the message up to the RenderView, until we have enough
// infrastructure to start processing messages in this object.
return render_view_->OnMessageReceived(msg);
}
} // namespace content
|