#ifndef CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_
#define CONTENT_RENDERER_MEDIA_ACTIVE_LOADER_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
namespace blink {
class WebURLLoader;
}
namespace content {
class ActiveLoader {
public:
explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader);
~ActiveLoader();
void SetDeferred(bool deferred);
bool deferred() { return deferred_; }
private:
friend class BufferedDataSourceTest;
scoped_ptr<blink::WebURLLoader> loader_;
bool deferred_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader);
};
}
#endif