Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: net/url_request/url_range_request_job.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_fetcher_response_writer.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <vector>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/http/http_byte_range.h" 11 #include "net/http/http_byte_range.h"
12 #include "net/url_request/url_request_job.h" 12 #include "net/url_request/url_request_job.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class HttpRequestHeaders; 16 class HttpRequestHeaders;
17 17
18 // URLRequestJob with support for parsing range requests. 18 // URLRequestJob with support for parsing range requests.
19 // It is up to subclasses to handle the response 19 // It is up to subclasses to handle the response
20 // and deal with an errors parsing the range request header. 20 // and deal with an errors parsing the range request header.
21 // This must be done after Start() has been called. 21 // This must be done after Start() has been called.
22 class NET_EXPORT URLRangeRequestJob : public URLRequestJob { 22 class NET_EXPORT URLRangeRequestJob : public URLRequestJob {
23 public: 23 public:
24 URLRangeRequestJob(URLRequest* request, 24 URLRangeRequestJob(URLRequest* request,
25 NetworkDelegate* delegate); 25 NetworkDelegate* delegate);
26 26
27 virtual void SetExtraRequestHeaders( 27 void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override;
28 const HttpRequestHeaders& headers) override;
29 28
30 const std::vector<HttpByteRange>& ranges() const { return ranges_; } 29 const std::vector<HttpByteRange>& ranges() const { return ranges_; }
31 int range_parse_result() const { return range_parse_result_; } 30 int range_parse_result() const { return range_parse_result_; }
32 31
33 protected: 32 protected:
34 virtual ~URLRangeRequestJob(); 33 ~URLRangeRequestJob() override;
35 34
36 private: 35 private:
37 std::vector<HttpByteRange> ranges_; 36 std::vector<HttpByteRange> ranges_;
38 int range_parse_result_; 37 int range_parse_result_;
39 }; 38 };
40 39
41 } // namespace net 40 } // namespace net
42 41
43 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_ 42 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_response_writer.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698