#ifndef CHROME_RENDERER_PRERENDER_PRERENDER_HELPER_H_
#define CHROME_RENDERER_PRERENDER_PRERENDER_HELPER_H_
#include "base/compiler_specific.h"
#include "base/time/time.h"
#include "content/public/renderer/render_frame_observer.h"
#include "content/public/renderer/render_frame_observer_tracker.h"
namespace prerender {
class PrerenderHelper
: public content::RenderFrameObserver,
public content::RenderFrameObserverTracker<PrerenderHelper> {
public:
explicit PrerenderHelper(content::RenderFrame* render_frame);
virtual ~PrerenderHelper();
static bool IsPrerendering(const content::RenderFrame* render_frame);
private:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
void OnSetIsPrerendering(bool is_prerendering);
DISALLOW_COPY_AND_ASSIGN(PrerenderHelper);
};
}
#endif