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

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

Issue 11571025: Initial CL for Downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Pawel's comment. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8bfa0a6da23ff17f50bdf85ef4dd08e32bcd6f2..a8e32586f155e8300eb1b6cdb6278ff597bc04b5 100644
--- a/content/public/browser/download_url_parameters.h
+++ b/content/public/browser/download_url_parameters.h
@@ -67,6 +67,12 @@ class CONTENT_EXPORT DownloadUrlParameters {
referrer_encoding_ = referrer_encoding;
}
void set_load_flags(int load_flags) { load_flags_ |= load_flags; }
+ void set_last_modified(const std::string& last_modified) {
+ last_modified_ = last_modified;
+ }
+ void set_etag(const std::string& etag) {
+ etag_ = etag;
+ }
void set_method(const std::string& method) {
method_ = method;
}
@@ -98,6 +104,8 @@ class CONTENT_EXPORT DownloadUrlParameters {
const OnStartedCallback& callback() const { return callback_; }
bool content_initiated() const { return content_initiated_; }
int load_flags() const { return load_flags_; }
+ const std::string& last_modified() { return last_modified_; }
+ const std::string& etag() { return etag_; }
const std::string& method() const { return method_; }
const std::string& post_body() const { return post_body_; }
int64 post_id() const { return post_id_; }
@@ -138,6 +146,8 @@ class CONTENT_EXPORT DownloadUrlParameters {
bool content_initiated_;
RequestHeadersType request_headers_;
int load_flags_;
+ std::string last_modified_;
+ std::string etag_;
std::string method_;
std::string post_body_;
int64 post_id_;
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698