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

Unified Diff: content/browser/background_fetch/background_fetch_request_info.h

Issue 2805813006: Set the Content-Type and Content-Length headers for BG Fetch (Closed)
Patch Set: Set the Content-Type and Content-Length headers for BG Fetch Created 3 years, 8 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/browser/background_fetch/background_fetch_request_info.h
diff --git a/content/browser/background_fetch/background_fetch_request_info.h b/content/browser/background_fetch/background_fetch_request_info.h
index d5939be993135167187897d2287e3d21d0a5a9b4..6c61101231335e7cb2f6fe740d76b9ea1e6031ba 100644
--- a/content/browser/background_fetch/background_fetch_request_info.h
+++ b/content/browser/background_fetch/background_fetch_request_info.h
@@ -60,6 +60,9 @@ class CONTENT_EXPORT BackgroundFetchRequestInfo
// Returns the time at which the response was completed.
const base::Time& GetResponseTime() const;
+ // Returns the mime type describing the response, as indicated by the server.
+ const std::string& GetResponseType() const;
+
private:
friend class base::RefCountedThreadSafe<BackgroundFetchRequestInfo>;
@@ -87,6 +90,7 @@ class CONTENT_EXPORT BackgroundFetchRequestInfo
base::FilePath file_path_;
int64_t file_size_ = 0;
base::Time response_time_;
+ std::string response_type_;
DISALLOW_COPY_AND_ASSIGN(BackgroundFetchRequestInfo);
};

Powered by Google App Engine
This is Rietveld 408576698