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

Issue 2503473004: Server push cancellation: add a new class HttpCacheLookupManager which implements ServerPushDelegate (Closed)

Created:
4 years, 1 month ago by Zhongyi Shi
Modified:
4 years, 1 month ago
Reviewers:
jkarlin, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, kinuko+cache_chromium.org, Buck
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Server push cancellation: add a new class HttpCacheLookupManager which implements ServerPushDelegate and can create cache transaction to lookup whether the server push has a cached response. BUG=232040 Committed: https://crrev.com/8f72aeb11c5f8c8824a335fb72aadfa5b03df674 Cr-Commit-Position: refs/heads/master@{#433983}

Patch Set 1 #

Total comments: 31

Patch Set 2 : address rch's comments 1 #

Total comments: 6

Patch Set 3 : Use LookupTransaction::StartLookup #

Total comments: 1

Patch Set 4 : sync with master #

Total comments: 5

Patch Set 5 : address rch's comments #

Total comments: 14

Patch Set 6 : address jkarlin's comments #

Patch Set 7 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into SPC_CacheLookupDelegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -0 lines) Patch
A net/http/http_cache_lookup_manager.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A net/http/http_cache_lookup_manager.cc View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
A net/http/http_cache_lookup_manager_unittest.cc View 1 2 3 4 5 1 chunk +287 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
Zhongyi Shi
4 years, 1 month ago (2016-11-15 20:58:46 UTC) #4
Ryan Hamilton
sweet https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc#newcode15 net/http/http_cache_lookup_manager.cc:15: request.reset(new HttpRequestInfo()); nit: you can do both of ...
4 years, 1 month ago (2016-11-15 23:16:06 UTC) #5
Zhongyi Shi
Thanks for the review, Ryan, ptal! https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc#newcode15 net/http/http_cache_lookup_manager.cc:15: request.reset(new HttpRequestInfo()); On ...
4 years, 1 month ago (2016-11-16 21:04:43 UTC) #7
Ryan Hamilton
sweet https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/40001/net/http/http_cache_lookup_manager.cc#newcode18 net/http/http_cache_lookup_manager.cc:18: request->load_flags = LOAD_ONLY_FROM_CACHE | LOAD_SKIP_CACHE_VALIDATION; On 2016/11/16 21:04:42, ...
4 years, 1 month ago (2016-11-17 22:47:25 UTC) #8
Zhongyi Shi
+jkarlin, could you help review the FLAG setting in PS1 LookupTransaction::LookupTransaction()? Ryan and I were ...
4 years, 1 month ago (2016-11-18 19:35:13 UTC) #10
Zhongyi Shi
Update: Move start transaction logic to LookupTransaction::StartLookup(). Leave the HttpCache::Transaction flags setting to jkarlin for ...
4 years, 1 month ago (2016-11-18 20:34:20 UTC) #11
Ryan Hamilton
Looks great. 2 nits. https://codereview.chromium.org/2503473004/diff/120001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/120001/net/http/http_cache_lookup_manager.cc#newcode46 net/http/http_cache_lookup_manager.cc:46: if (lookup_transactions_.find(pushed_url) != lookup_transactions_.end()) nit: ...
4 years, 1 month ago (2016-11-18 20:47:02 UTC) #12
Zhongyi Shi
Update: address Ryan's comments. PTAL, thanks! https://codereview.chromium.org/2503473004/diff/120001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/120001/net/http/http_cache_lookup_manager.cc#newcode46 net/http/http_cache_lookup_manager.cc:46: if (lookup_transactions_.find(pushed_url) != ...
4 years, 1 month ago (2016-11-19 05:07:12 UTC) #13
Ryan Hamilton
lgtm, modulo your question for jkarlin
4 years, 1 month ago (2016-11-19 05:40:00 UTC) #14
jkarlin
https://codereview.chromium.org/2503473004/diff/140001/net/http/http_cache_lookup_manager.cc File net/http/http_cache_lookup_manager.cc (right): https://codereview.chromium.org/2503473004/diff/140001/net/http/http_cache_lookup_manager.cc#newcode25 net/http/http_cache_lookup_manager.cc:25: request->load_flags = LOAD_ONLY_FROM_CACHE | LOAD_SKIP_CACHE_VALIDATION; So, if the resource ...
4 years, 1 month ago (2016-11-21 14:40:41 UTC) #15
Zhongyi Shi
jkarlin@: thanks for helping the review, PTAL! Updated: - address nits and comments - correct ...
4 years, 1 month ago (2016-11-22 00:09:30 UTC) #16
jkarlin
lgtm
4 years, 1 month ago (2016-11-22 14:05:35 UTC) #17
Zhongyi Shi
Thanks a lot for help reviewing this cl, landing now :)
4 years, 1 month ago (2016-11-22 21:14:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2503473004/180001
4 years, 1 month ago (2016-11-22 21:15:35 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 1 month ago (2016-11-22 21:22:07 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 21:25:11 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8f72aeb11c5f8c8824a335fb72aadfa5b03df674
Cr-Commit-Position: refs/heads/master@{#433983}

Powered by Google App Engine
This is Rietveld 408576698