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

Unified Diff: components/image_fetcher/request_metadata.cc

Issue 2749283002: components/image_fetcher: Add a from_http_cache flag to RequestMetadata (Closed)
Patch Set: test 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
« no previous file with comments | « components/image_fetcher/request_metadata.h ('k') | components/image_fetcher/request_metadata_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/request_metadata.cc
diff --git a/components/image_fetcher/request_metadata.cc b/components/image_fetcher/request_metadata.cc
index 172dc5c2ab1bdb6e3ffbc8af34112faba8d84fed..51748cdbaef175d3d3a791a724579f08bec19440 100644
--- a/components/image_fetcher/request_metadata.cc
+++ b/components/image_fetcher/request_metadata.cc
@@ -6,9 +6,13 @@
namespace image_fetcher {
+RequestMetadata::RequestMetadata()
+ : http_response_code(RESPONSE_CODE_INVALID), from_http_cache(false) {}
+
bool operator==(const RequestMetadata& lhs, const RequestMetadata& rhs) {
return lhs.mime_type == rhs.mime_type &&
- lhs.response_code == rhs.response_code;
+ lhs.http_response_code == rhs.http_response_code &&
+ lhs.from_http_cache == rhs.from_http_cache;
}
bool operator!=(const RequestMetadata& lhs, const RequestMetadata& rhs) {
« no previous file with comments | « components/image_fetcher/request_metadata.h ('k') | components/image_fetcher/request_metadata_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698