OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ |
6 #define NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
8 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
9 #include "net/http/http_byte_range.h" | 11 #include "net/http/http_byte_range.h" |
10 #include "net/url_request/url_request_job.h" | 12 #include "net/url_request/url_request_job.h" |
11 | 13 |
12 namespace net { | 14 namespace net { |
13 | 15 |
14 class HttpRequestHeaders; | 16 class HttpRequestHeaders; |
15 | 17 |
16 // URLRequestJob with support for parsing range requests. | 18 // URLRequestJob with support for parsing range requests. |
17 // It is up to subclasses to handle the response | 19 // It is up to subclasses to handle the response |
(...skipping 14 matching lines...) Expand all Loading... |
32 virtual ~URLRangeRequestJob(); | 34 virtual ~URLRangeRequestJob(); |
33 | 35 |
34 private: | 36 private: |
35 std::vector<HttpByteRange> ranges_; | 37 std::vector<HttpByteRange> ranges_; |
36 int range_parse_result_; | 38 int range_parse_result_; |
37 }; | 39 }; |
38 | 40 |
39 } // namespace net | 41 } // namespace net |
40 | 42 |
41 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ | 43 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ |
OLD | NEW |