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

Issue 2874663004: Provide skeleton functionality for AppCache handling in the network service. (Closed)

Created:
3 years, 7 months ago by ananta
Modified:
3 years, 6 months ago
Reviewers:
kinuko, jam, scottmg
CC:
chromium-reviews, michaeln, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide skeleton functionality for AppCache handling in the network service. We have a new class AppCacheNetworkServiceHandler which gets created on the IO thread. This class provides functionality for checking if a request can be serviced out of the AppCache. I was looking at AppCacheRequestHandler for this as well. However that class is tied deeply to the underlying job which gets a touch complicated for lifetime managemnt if the request is not really being served out the cache. Added some comments for that class to see if we could remove it once the pieces begin to align. This class implements the AppCacheStorage::Delegate interface which tells us if a response is available for a URL. Currently we just trace if a response is found and call the StartURLRequest callback in both cases. Going forward the plan is to create a URLLoaderFactory for AppCache and pass it back to the callback. Optionally we could create the loader right there as well. Thanks to jam for pointing that out. The other changes are to have the original ResourceRequest pointer in the AppCacheURLLoaderRequest class instead of a copy. We ensure that ownership is transferred correctly. BUG=715632 Review-Url: https://codereview.chromium.org/2874663004 Cr-Commit-Position: refs/heads/master@{#471120} Committed: https://chromium.googlesource.com/chromium/src/+/e3f159a4458149bd184fcd1f523a5d9d0a6687f7

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address review comments #

Patch Set 3 : Fix build error #

Patch Set 4 : Fix compile failures #

Patch Set 5 : Fix compile failures #

Patch Set 6 : Disable posting to the IO thread if appcache is enabled in the n/w service code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -40 lines) Patch
M content/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_job.h View 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_job.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A content/browser/appcache/appcache_network_service_handler.h View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
A content/browser/appcache/appcache_network_service_handler.cc View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_request_handler.h View 1 3 chunks +17 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_request_handler.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_url_loader_request.h View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/appcache/appcache_url_loader_request.cc View 2 chunks +13 lines, -12 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 4 5 5 chunks +57 lines, -22 lines 0 comments Download

Messages

Total messages: 41 (28 generated)
ananta
Please gloss over the NavigationURLLoaderNetworkService changes in this patchset. Once scottmg's patch lands I will ...
3 years, 7 months ago (2017-05-11 00:27:40 UTC) #2
jam
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc File content/browser/appcache/appcache_network_service_handler.cc (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc#newcode61 content/browser/appcache/appcache_network_service_handler.cc:61: // Pass a URLLoaderFactory pointer which supports serving URL ...
3 years, 7 months ago (2017-05-11 01:42:13 UTC) #8
ananta
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc File content/browser/appcache/appcache_network_service_handler.cc (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc#newcode61 content/browser/appcache/appcache_network_service_handler.cc:61: // Pass a URLLoaderFactory pointer which supports serving URL ...
3 years, 7 months ago (2017-05-11 02:12:31 UTC) #9
kinuko
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc File content/browser/appcache/appcache_network_service_handler.cc (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc#newcode61 content/browser/appcache/appcache_network_service_handler.cc:61: // Pass a URLLoaderFactory pointer which supports serving URL ...
3 years, 7 months ago (2017-05-11 02:14:14 UTC) #11
ananta
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h File content/browser/appcache/appcache_network_service_handler.h (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h#newcode29 content/browser/appcache/appcache_network_service_handler.h:29: // of that class gets a touch complicated. The ...
3 years, 7 months ago (2017-05-11 02:30:24 UTC) #12
ananta
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h File content/browser/appcache/appcache_network_service_handler.h (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h#newcode29 content/browser/appcache/appcache_network_service_handler.h:29: // of that class gets a touch complicated. The ...
3 years, 7 months ago (2017-05-11 02:32:00 UTC) #13
kinuko
On 2017/05/11 02:32:00, ananta wrote: > https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h > File content/browser/appcache/appcache_network_service_handler.h (right): > > https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.h#newcode29 > ...
3 years, 7 months ago (2017-05-11 03:23:13 UTC) #18
jam
https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc File content/browser/appcache/appcache_network_service_handler.cc (right): https://codereview.chromium.org/2874663004/diff/1/content/browser/appcache/appcache_network_service_handler.cc#newcode61 content/browser/appcache/appcache_network_service_handler.cc:61: // Pass a URLLoaderFactory pointer which supports serving URL ...
3 years, 7 months ago (2017-05-11 14:50:44 UTC) #31
jam
lgtm (per IM, the threading will be clarified in the next cls)
3 years, 7 months ago (2017-05-11 19:35:55 UTC) #32
scottmg
Sorry, hadn't seen this CL. We can't make the URLLoader on the IO because it ...
3 years, 7 months ago (2017-05-11 21:13:11 UTC) #34
ananta
On 2017/05/11 21:13:11, scottmg wrote: > Sorry, hadn't seen this CL. > > We can't ...
3 years, 7 months ago (2017-05-11 21:42:14 UTC) #35
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/2874663004/100001
3 years, 7 months ago (2017-05-11 21:43:18 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 23:40:23 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e3f159a4458149bd184fcd1f523a...

Powered by Google App Engine
This is Rietveld 408576698