#ifndef CHROME_RENDERER_PRERENDER_PRERENDER_MEDIA_LOAD_DEFERRER_H_
#define CHROME_RENDERER_PRERENDER_PRERENDER_MEDIA_LOAD_DEFERRER_H_
#include "base/callback.h"
#include "content/public/renderer/render_frame_observer.h"
namespace prerender {
class PrerenderMediaLoadDeferrer : public content::RenderFrameObserver {
public:
PrerenderMediaLoadDeferrer(content::RenderFrame* render_frame,
const base::Closure& closure);
virtual ~PrerenderMediaLoadDeferrer();
private:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
void OnSetIsPrerendering(bool is_prerendering);
bool is_prerendering_;
base::Closure continue_loading_cb_;
DISALLOW_COPY_AND_ASSIGN(PrerenderMediaLoadDeferrer);
};
}
#endif