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. 4 5#ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ 6#define CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ 7 8#include "base/compiler_specific.h" 9#include "content/public/browser/render_frame_host.h" 10 11namespace content { 12 13class RenderViewHostImpl; 14 15class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { 16 public: 17 RenderFrameHostImpl( 18 RenderViewHostImpl* render_view_host, 19 int routing_id, 20 bool swapped_out); 21 virtual ~RenderFrameHostImpl(); 22 23 // IPC::Sender 24 virtual bool Send(IPC::Message* msg) OVERRIDE; 25 26 // IPC::Listener 27 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 28 29 int routing_id() { return routing_id_; } 30 31 private: 32 RenderViewHostImpl* render_view_host_; 33 34 int routing_id_; 35 36 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 37}; 38 39} // namespace content 40 41#endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_ 42