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

Unified Diff: content/public/browser/download_url_parameters.h

Issue 2786523002: Add control to use If-Range header for range request. (Closed)
Patch Set: Rebase. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_url_parameters.h
diff --git a/content/public/browser/download_url_parameters.h b/content/public/browser/download_url_parameters.h
index 88121d8c0363f231e8f7b67d2d4726e02076d965..88ff9d4d87cfcb2cd60e13241f14483525146201 100644
--- a/content/public/browser/download_url_parameters.h
+++ b/content/public/browser/download_url_parameters.h
@@ -127,6 +127,9 @@ class CONTENT_EXPORT DownloadUrlParameters {
etag_ = etag;
}
+ // If the "If-Range" header is used in a partial request.
+ void set_use_if_range(bool use_if_range) { use_if_range_ = use_if_range; }
+
// HTTP method to use.
void set_method(const std::string& method) {
method_ = method;
@@ -219,6 +222,7 @@ class CONTENT_EXPORT DownloadUrlParameters {
bool content_initiated() const { return content_initiated_; }
const std::string& last_modified() const { return last_modified_; }
const std::string& etag() const { return etag_; }
+ bool use_if_range() const { return use_if_range_; }
const std::string& method() const { return method_; }
const std::string& post_body() const { return post_body_; }
int64_t post_id() const { return post_id_; }
@@ -269,6 +273,7 @@ class CONTENT_EXPORT DownloadUrlParameters {
RequestHeadersType request_headers_;
std::string last_modified_;
std::string etag_;
+ bool use_if_range_;
std::string method_;
std::string post_body_;
int64_t post_id_;
« no previous file with comments | « content/browser/download/parallel_download_job.cc ('k') | content/public/browser/download_url_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698