#ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_MESSAGE_FILTER_H_
#include "content/public/browser/browser_message_filter.h"
namespace content {
class RenderWidgetHelper;
class RenderFrameMessageFilter : public BrowserMessageFilter {
public:
RenderFrameMessageFilter(int render_process_id,
RenderWidgetHelper* render_widget_helper);
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) OVERRIDE;
private:
virtual ~RenderFrameMessageFilter();
void OnCreateChildFrame(int parent_routing_id,
const std::string& frame_name,
int* new_render_frame_id);
const int render_process_id_;
scoped_refptr<RenderWidgetHelper> render_widget_helper_;
};
}
#endif