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

Issue 459003002: Plumbs URLRequestContext and CacheBlobStorageContext down to cache. (Closed)

Created:
6 years, 4 months ago by jkarlin
Modified:
6 years, 4 months ago
CC:
alecflett+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@cache1
Project:
chromium
Visibility:
Public.

Description

Plumbs URLRequestContext and CacheBlobStorageContext down to cache. This will be needed for request/response blobs in the ServiceWorkerCache. BUG=392621 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289326

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rebase #

Total comments: 1

Patch Set 3 : Get the URLRequestContext from the ServiceWorkerDispatcherHost #

Patch Set 4 : Dispatcher host needs to work with ChromeBlobStorageContext #

Patch Set 5 : Rebase #

Total comments: 24

Patch Set 6 : Rebase to upstream CL #

Patch Set 7 : nits #

Patch Set 8 : Addresses michaeln's comments from PS5 #

Total comments: 8

Patch Set 9 : Moved init call to StoragePartitionImplMap #

Patch Set 10 : Adressed all comments from PS5 and PS8 #

Patch Set 11 : Rebase #

Patch Set 12 : Check pointers for tests #

Patch Set 13 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -38 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 2 3 4 5 6 3 chunks +22 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 2 3 4 5 6 2 chunks +23 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.h View 1 2 3 4 2 chunks +14 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +36 lines, -14 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager.h View 1 2 3 4 5 6 7 4 chunks +28 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc View 1 2 3 4 5 6 4 chunks +15 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jkarlin
michaeln@chromium.org: Please review changes in everything falken@chromium.org: Please review changes in everything gavinp@chromium.org: FYI
6 years, 4 months ago (2014-08-11 18:27:39 UTC) #1
michaeln
i have some suggestions about ptr types and such... https://codereview.chromium.org/459003002/diff/1/content/browser/service_worker/service_worker_cache.h File content/browser/service_worker/service_worker_cache.h (right): https://codereview.chromium.org/459003002/diff/1/content/browser/service_worker/service_worker_cache.h#newcode33 content/browser/service_worker/service_worker_cache.h:33: ...
6 years, 4 months ago (2014-08-12 03:48:53 UTC) #2
jkarlin
I was accessing the wrong URLRequestContext, I have to get it *after* storage creation. Copying ...
6 years, 4 months ago (2014-08-12 18:45:18 UTC) #3
jkarlin
asvitkine@chromium.org: Please review changes in content/browser/renderer_host/ Thanks!
6 years, 4 months ago (2014-08-12 18:46:16 UTC) #4
michaeln
https://codereview.chromium.org/459003002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/459003002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode27 content/browser/service_worker/service_worker_context_wrapper.cc:27: request_context_getter_(browser_context->GetRequestContext()), omg! sorry i didn't notice that this is ...
6 years, 4 months ago (2014-08-12 18:55:45 UTC) #5
jkarlin
On 2014/08/12 18:55:45, michaeln wrote: > https://codereview.chromium.org/459003002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc > File content/browser/service_worker/service_worker_context_wrapper.cc (right): > > https://codereview.chromium.org/459003002/diff/20001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode27 > ...
6 years, 4 months ago (2014-08-12 19:00:21 UTC) #6
Alexei Svitkine (slow)
-asvitkine, I'm only an owner for Mac-specific code in content/browser/renderer_host/*
6 years, 4 months ago (2014-08-12 19:00:42 UTC) #7
jkarlin
sadrul@chromium.org: Please review changes in content/browser/renderer_host/ Thanks!
6 years, 4 months ago (2014-08-12 19:14:28 UTC) #8
jkarlin
Since you're in the middle of review I'm posting these comments here and will fix ...
6 years, 4 months ago (2014-08-12 19:22:15 UTC) #9
michaeln
alternative could you use StoragePartitionImplMap::PostCreateInitialization as the one-time init callsite ? https://codereview.chromium.org/459003002/diff/80001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): ...
6 years, 4 months ago (2014-08-13 00:11:28 UTC) #10
jkarlin
https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache.cc#newcode10 content/browser/service_worker/service_worker_cache.cc:10: #include "content/browser/fileapi/chrome_blob_storage_context.h" On 2014/08/12 19:22:15, jkarlin wrote: > I'll ...
6 years, 4 months ago (2014-08-13 00:14:00 UTC) #11
jkarlin
Thanks Michael, and double thanks for the IO thread catch. I hope to have layout ...
6 years, 4 months ago (2014-08-13 00:34:41 UTC) #12
michaeln
lgtm https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache_storage_manager.cc File content/browser/service_worker/service_worker_cache_storage_manager.cc (right): https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache_storage_manager.cc#newcode135 content/browser/service_worker/service_worker_cache_storage_manager.cc:135: blob_context_ = blob_storage_context; On 2014/08/13 00:34:41, jkarlin wrote: ...
6 years, 4 months ago (2014-08-13 02:03:38 UTC) #13
jkarlin
https://codereview.chromium.org/459003002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/459003002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc#newcode1 content/browser/renderer_host/render_process_host_impl.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
6 years, 4 months ago (2014-08-13 11:56:42 UTC) #14
jkarlin
-sadrul as that file needed for review is removed from the CL
6 years, 4 months ago (2014-08-13 11:57:54 UTC) #15
jkarlin
jochen@chromium.org: Please review changes in content/browser/storage_partition_impl_map. Thanks! https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache_storage_manager.cc File content/browser/service_worker/service_worker_cache_storage_manager.cc (right): https://codereview.chromium.org/459003002/diff/80001/content/browser/service_worker/service_worker_cache_storage_manager.cc#newcode135 content/browser/service_worker/service_worker_cache_storage_manager.cc:135: blob_context_ = ...
6 years, 4 months ago (2014-08-13 12:12:03 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-13 12:32:26 UTC) #17
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 4 months ago (2014-08-13 15:35:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/459003002/260001
6 years, 4 months ago (2014-08-13 15:36:20 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 17:16:20 UTC) #20
Message was sent while issue was closed.
Committed patchset #13 (260001) as 289326

Powered by Google App Engine
This is Rietveld 408576698