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

Issue 2848493007: Reduce/Remove URLRequest dependencies from AppCacheRequestHandler (Closed)

Created:
3 years, 7 months ago by ananta
Modified:
3 years, 7 months ago
Reviewers:
michaeln, kinuko, jam
CC:
chromium-reviews, darin-cc_chromium.org, scottmg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce/Remove URLRequest dependencies from AppCacheRequestHandler The AppCacheRequestHandler class provides functionality for serving network requests from the AppCache if applicable. This class is instantiated by the AppCacheInterceptor when a network request is initiated. Its lifetime depends on the associated URLRequest. The plan is to reuse this class in the network service world where we won't be intercepting network requests in the browser process. This effectively means that there won't be any URLRequest as well To achieve this the proposal is to provide an abstraction for a request called AppCachRequest. This class will have two subclasses at the moment. AppCacheURLRequest and AppCacheURLLoaderRequest. The AppCacheURLRequest class will be used by the current network implementation which relies on intercepting n/w requests. The AppCacheURLLoaderRequest class will be used by the network service mojo implementation. Next step is to provide an abstraction for the AppCacheURLRequestJob class. BUG=715632 TBR=jam Review-Url: https://codereview.chromium.org/2848493007 Cr-Commit-Position: refs/heads/master@{#469254} Committed: https://chromium.googlesource.com/chromium/src/+/4e8a529c38afa4770486d8033cb37af0d6caf311

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments #

Patch Set 3 : Fix compile failures #

Total comments: 6

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Renamed AppCacheURLLoader to AppCacheURLLoaderRequest #

Patch Set 6 : format changes #

Total comments: 4

Patch Set 7 : Use unique_ptr to make ownership of the AppCacheRequest class explicit #

Patch Set 8 : git cl format #

Patch Set 9 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+607 lines, -309 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_interceptor.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -5 lines 0 comments Download
A content/browser/appcache/appcache_job.h View 1 2 3 4 5 6 7 1 chunk +121 lines, -0 lines 0 comments Download
A content/browser/appcache/appcache_job.cc View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_request.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/appcache/appcache_request_handler.h View 1 2 3 4 5 6 7 6 chunks +9 lines, -9 lines 0 comments Download
M content/browser/appcache/appcache_request_handler.cc View 1 2 3 4 5 6 7 13 chunks +25 lines, -28 lines 0 comments Download
M content/browser/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 6 7 24 chunks +166 lines, -137 lines 0 comments Download
A content/browser/appcache/appcache_url_loader_job.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A content/browser/appcache/appcache_url_loader_job.cc View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_url_request_job.h View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -54 lines 0 comments Download
M content/browser/appcache/appcache_url_request_job.cc View 1 2 3 4 5 6 7 8 chunks +80 lines, -53 lines 0 comments Download
M content/browser/appcache/appcache_url_request_job_unittest.cc View 1 2 3 4 5 6 7 7 chunks +23 lines, -23 lines 0 comments Download

Messages

Total messages: 65 (35 generated)
ananta
3 years, 7 months ago (2017-04-29 01:33:56 UTC) #2
michaeln
lgtm (also cc'd kinuko and scott for synergy with sw work) https://codereview.chromium.org/2848493007/diff/1/content/browser/appcache/appcache_request.h File content/browser/appcache/appcache_request.h (right): ...
3 years, 7 months ago (2017-05-01 20:53:58 UTC) #8
michaeln
https://codereview.chromium.org/2848493007/diff/1/content/browser/appcache/appcache_resource_request.h File content/browser/appcache/appcache_resource_request.h (right): https://codereview.chromium.org/2848493007/diff/1/content/browser/appcache/appcache_resource_request.h#newcode42 content/browser/appcache/appcache_resource_request.h:42: ResourceRequest request_; Wait a sec, I think the 'handler' ...
3 years, 7 months ago (2017-05-01 23:41:31 UTC) #9
jam
drive-by: the two names of the subclases are a bit confusing. I could understand that ...
3 years, 7 months ago (2017-05-02 23:48:50 UTC) #10
ananta
Thanks michaeln. jam i renamed the files and the class. https://codereview.chromium.org/2848493007/diff/1/content/browser/appcache/appcache_request.h File content/browser/appcache/appcache_request.h (right): https://codereview.chromium.org/2848493007/diff/1/content/browser/appcache/appcache_request.h#newcode34 ...
3 years, 7 months ago (2017-05-03 00:16:47 UTC) #11
kinuko
drive-by, just wanted to see how appcache side's going. (Thanks Michael for cc-ing) Interesting so ...
3 years, 7 months ago (2017-05-03 01:28:21 UTC) #19
ananta
On 2017/05/03 01:28:21, kinuko wrote: > drive-by, just wanted to see how appcache side's going. ...
3 years, 7 months ago (2017-05-03 01:33:53 UTC) #21
ananta
https://codereview.chromium.org/2848493007/diff/40001/content/browser/appcache/appcache_url_loader.h File content/browser/appcache/appcache_url_loader.h (right): https://codereview.chromium.org/2848493007/diff/40001/content/browser/appcache/appcache_url_loader.h#newcode13 content/browser/appcache/appcache_url_loader.h:13: // AppCacheRequest wrapper for the ResourceRequest class. On 2017/05/03 ...
3 years, 7 months ago (2017-05-03 01:34:01 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/2848493007/60001
3 years, 7 months ago (2017-05-03 01:36:43 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/425953)
3 years, 7 months ago (2017-05-03 01:48:45 UTC) #27
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/2848493007/60001
3 years, 7 months ago (2017-05-03 02:02:19 UTC) #30
michaeln
On 2017/05/03 01:28:21, kinuko wrote: > drive-by, just wanted to see how appcache side's going. ...
3 years, 7 months ago (2017-05-03 02:20:23 UTC) #31
michaeln
https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h File content/browser/appcache/appcache_url_loader.h (right): https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h#newcode15 content/browser/appcache/appcache_url_loader.h:15: class CONTENT_EXPORT AppCacheURLLoader : public AppCacheRequest { Sorry for ...
3 years, 7 months ago (2017-05-03 02:32:12 UTC) #32
jam
https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h File content/browser/appcache/appcache_url_loader.h (right): https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h#newcode15 content/browser/appcache/appcache_url_loader.h:15: class CONTENT_EXPORT AppCacheURLLoader : public AppCacheRequest { On 2017/05/03 ...
3 years, 7 months ago (2017-05-03 03:54:45 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/361830)
3 years, 7 months ago (2017-05-03 06:56:12 UTC) #36
ananta
On 2017/05/03 03:54:45, jam wrote: > https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h > File content/browser/appcache/appcache_url_loader.h (right): > > https://codereview.chromium.org/2848493007/diff/60001/content/browser/appcache/appcache_url_loader.h#newcode15 > ...
3 years, 7 months ago (2017-05-03 19:00:30 UTC) #38
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/2848493007/100001
3 years, 7 months ago (2017-05-03 19:03:35 UTC) #41
jam
sorry for the noise, I ran into Michael and he explained his reasoning. probably best ...
3 years, 7 months ago (2017-05-03 19:53:26 UTC) #43
michaeln
So long as the handler takes as input some kind of 'request' that describes what ...
3 years, 7 months ago (2017-05-03 20:05:47 UTC) #44
ananta
https://codereview.chromium.org/2848493007/diff/100001/content/browser/appcache/appcache_request_handler.cc File content/browser/appcache/appcache_request_handler.cc (right): https://codereview.chromium.org/2848493007/diff/100001/content/browser/appcache/appcache_request_handler.cc#newcode185 content/browser/appcache/appcache_request_handler.cc:185: return job.release(); On 2017/05/03 20:05:47, michaeln wrote: > The ...
3 years, 7 months ago (2017-05-03 20:38:40 UTC) #45
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/2848493007/100001
3 years, 7 months ago (2017-05-03 20:45:06 UTC) #47
kinuko
Request thing being a request makes better sense to me, so cool. (lgtm/2, fwiw) On ...
3 years, 7 months ago (2017-05-03 22:05:47 UTC) #48
kinuko
On 2017/05/03 22:05:47, kinuko wrote: > Request thing being a request makes better sense to ...
3 years, 7 months ago (2017-05-03 22:07:18 UTC) #49
ananta
On 2017/05/03 22:07:18, kinuko wrote: > On 2017/05/03 22:05:47, kinuko wrote: > > Request thing ...
3 years, 7 months ago (2017-05-03 22:17:36 UTC) #50
michaeln
I'll be out of town for the next couple weeks (till 5/17). I'll bring a ...
3 years, 7 months ago (2017-05-03 22:54:08 UTC) #51
kinuko
Gotcha. I'll be in town on May 16-19 (hopefully, I need to confirm the final ...
3 years, 7 months ago (2017-05-03 23:48:51 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/362350)
3 years, 7 months ago (2017-05-04 00:25:18 UTC) #54
michaeln
On 2017/05/03 23:48:51, kinuko wrote: > Gotcha. I'll be in town on May 16-19 (hopefully, ...
3 years, 7 months ago (2017-05-04 01:52:10 UTC) #57
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/2848493007/120001
3 years, 7 months ago (2017-05-04 03:03:10 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 03:07:55 UTC) #65
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4e8a529c38afa4770486d8033cb3...

Powered by Google App Engine
This is Rietveld 408576698