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

Issue 935963002: Use int64 time stamp when storing metadata to the HTTP cache. (Closed)

Created:
5 years, 10 months ago by Yang
Modified:
5 years, 10 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, gavinp+disk_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use int64 time stamp when storing metadata to the HTTP cache. This is part 2/4 of a clean up to switch to int64 time stamps when caching metadata. The background to this is that converting int64 time stamps to double and back to int64 is lossy and causes false time stamp mismatches. BUG=453298 Committed: https://crrev.com/7fbf4c1ca967c4dd4674622f2c2ea059d08566b7 Cr-Commit-Position: refs/heads/master@{#317421}

Patch Set 1 #

Total comments: 3

Patch Set 2 : addressed comments #

Total comments: 1

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : added comment. #

Patch Set 5 : fix test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -18 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 1 chunk +14 lines, -2 lines 0 comments Download
M net/http/http_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_cache.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Yang
Please take a look. This is part of a series of CLs between blink and ...
5 years, 10 months ago (2015-02-18 09:46:46 UTC) #2
rvargas (doing something else)
lgtm
5 years, 10 months ago (2015-02-18 18:38:41 UTC) #3
davidben
https://codereview.chromium.org/935963002/diff/1/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/935963002/diff/1/content/child/web_url_loader_impl.cc#newcode977 content/child/web_url_loader_impl.cc:977: response->setOriginalResponseTime(info.response_time.ToInternalValue()); (It's a little weird to be storing two ...
5 years, 10 months ago (2015-02-18 18:50:45 UTC) #4
Yang
Thanks for the review. I addressed your comments. https://codereview.chromium.org/935963002/diff/20001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/935963002/diff/20001/content/child/web_url_loader_impl.cc#newcode978 content/child/web_url_loader_impl.cc:978: static_cast<long ...
5 years, 10 months ago (2015-02-19 08:39:44 UTC) #6
Mike West
LGTM, given that you're getting rid of the duplication in future patches in the series.
5 years, 10 months ago (2015-02-19 09:37:10 UTC) #7
davidben
lgtm https://codereview.chromium.org/935963002/diff/40001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/935963002/diff/40001/content/child/web_url_loader_impl.cc#newcode978 content/child/web_url_loader_impl.cc:978: static_cast<long long>(info.response_time.ToInternalValue())); This was really confusing, but I ...
5 years, 10 months ago (2015-02-19 21:40:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935963002/60001
5 years, 10 months ago (2015-02-20 21:11:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61076)
5 years, 10 months ago (2015-02-20 21:25:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935963002/80001
5 years, 10 months ago (2015-02-20 21:33:19 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-20 22:17:12 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 22:17:51 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7fbf4c1ca967c4dd4674622f2c2ea059d08566b7
Cr-Commit-Position: refs/heads/master@{#317421}

Powered by Google App Engine
This is Rietveld 408576698