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

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

Issue 104513002: Fixed playing video in component extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Linux compilation fix. Created 6 years, 11 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/net.gyp ('k') | net/url_request/url_range_request_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 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 // URLRequestJob with support for parsing range requests.
17 // It is up to subclasses to handle the response
18 // and deal with an errors parsing the range request header.
19 // This must be done after Start() has been called.
20 class NET_EXPORT URLRangeRequestJob : public URLRequestJob {
21 public:
22 URLRangeRequestJob(URLRequest* request,
23 NetworkDelegate* delegate);
24
25 virtual void SetExtraRequestHeaders(
26 const HttpRequestHeaders& headers) OVERRIDE;
27
28 const std::vector<HttpByteRange>& ranges() const { return ranges_; }
29 int range_parse_result() const { return range_parse_result_; }
30
31 protected:
32 virtual ~URLRangeRequestJob();
33
34 private:
35 std::vector<HttpByteRange> ranges_;
36 int range_parse_result_;
37 };
38
39 } // namespace net
40
41 #endif // NET_URL_REQUEST_URL_RANGE_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_range_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698