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

Unified Diff: media/blink/url_index.h

Issue 2338963002: Store, use and send etags. (Closed)
Patch Set: comments addressed Created 4 years, 3 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: media/blink/url_index.h
diff --git a/media/blink/url_index.h b/media/blink/url_index.h
index 47969fa9314af83b14648b0102b2c7c5ff44b4c9..bce8727f80a6341e4918e72a28a7967c74779f99 100644
--- a/media/blink/url_index.h
+++ b/media/blink/url_index.h
@@ -77,6 +77,8 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
// Last modified time.
base::Time last_modified() const { return last_modified_; }
+ const std::string& etag() const { return etag_; }
+
// Expiration time.
base::Time valid_until() const { return valid_until_; }
@@ -109,6 +111,7 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
void set_valid_until(base::Time valid_until);
void set_range_supported();
void set_last_modified(base::Time last_modified);
+ void set_etag(const std::string& etag);
// A redirect has occured (or we've found a better UrlData for the same
// resource).
@@ -188,6 +191,9 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
// Last modification time according to http headers.
base::Time last_modified_;
+ // Etag from HTTP reply.
+ std::string etag_;
+
ResourceMultiBuffer multibuffer_;
std::vector<RedirectCB> redirect_callbacks_;

Powered by Google App Engine
This is Rietveld 408576698