#ifndef NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_
#define NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_
#include "net/base/net_export.h"
#include "net/http/http_byte_range.h"
#include "net/url_request/url_request_job.h"
namespace net {
class HttpRequestHeaders;
class NET_EXPORT URLRangeRequestJob : public URLRequestJob {
public:
URLRangeRequestJob(URLRequest* request,
NetworkDelegate* delegate);
virtual void SetExtraRequestHeaders(
const HttpRequestHeaders& headers) OVERRIDE;
const std::vector<HttpByteRange>& ranges() const { return ranges_; }
int range_parse_result() const { return range_parse_result_; }
protected:
virtual ~URLRangeRequestJob();
private:
std::vector<HttpByteRange> ranges_;
int range_parse_result_;
};
}
#endif