Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | |
| 6 #define NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | |
| 7 | |
| 8 #include "net/base/net_export.h" | |
| 9 #include "net/http/http_byte_range.h" | |
| 10 #include "net/url_request/url_request_job.h" | |
| 11 | |
| 12 namespace net { | |
| 13 | |
| 14 class HttpRequestHeaders; | |
| 15 | |
| 16 class NET_EXPORT URLRangeRequestJob : public URLRequestJob { | |
|
mmenke
2014/01/07 18:51:39
Should have a comment here.
I suggest something l
kirr
2014/01/09 07:33:21
Done.
| |
| 17 public: | |
| 18 URLRangeRequestJob(URLRequest* request, | |
| 19 NetworkDelegate* delegate); | |
| 20 | |
| 21 virtual void SetExtraRequestHeaders( | |
| 22 const HttpRequestHeaders& headers) OVERRIDE; | |
| 23 | |
| 24 const std::vector<HttpByteRange>& ranges() const { return ranges_; } | |
| 25 int range_parse_error() const { return range_parse_error_; } | |
|
mmenke
2014/01/07 18:51:39
I suggest range_parse_result_ instead, since "OK"
kirr
2014/01/09 07:33:21
Done.
| |
| 26 | |
| 27 protected: | |
| 28 virtual ~URLRangeRequestJob(); | |
| 29 | |
| 30 private: | |
| 31 std::vector<HttpByteRange> ranges_; | |
| 32 int range_parse_error_; | |
| 33 }; | |
| 34 | |
| 35 } // namespace net | |
| 36 | |
| 37 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | |
| OLD | NEW |