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

Issue 10916132: AppCache and StoragePartition'ing (Closed)

Created:
8 years, 3 months ago by michaeln
Modified:
8 years, 3 months ago
Reviewers:
Charlie Reis, awong
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

AppCache and StoragePartition'ing * Get rid of BrowserContext::GetAppCacheService and ResourceContext::GetAppCacheService as they've been replace by accessors on the StoragePartition and WorkerStoragePartition classes. * Added a BrowsingContext::GetRequestContextForStoragePartition(id) accessor so the constellation of storage context + main request context can initialized properly. Implemented that method in chrome's Profile class in terms of the existing GetRequestContextForIsolatedApp(id) accessor. * Hold references to the ChromeAppCacheService and ChromeBlobStorageContext inside of ResourceMessageFilter and provide accessors to them. These are for use by the ResourceDispatcherHost singleton which would otherwise not have enough context to get needed references to partitioned things. * Widen the ResourceDispatcherHostDelegate::RequestBeginning method to also take an AppCacheService* parameter since that value can no longer be retrieved via the ResourceContext. Chrome's impl of this delegate interface needs that value to construct OfflineResourceThrottles. * Poke at WorkerProcessHost to create ResourceMessageFilters and others to utlize the correct URLRequestContext so the right set of cookies are used in shared workers. TBR=mihaip,sail,thakis BUG=85121 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156991

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 9

Patch Set 16 : #

Total comments: 2

Patch Set 17 : #

Patch Set 18 : #

Total comments: 4

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 2

Patch Set 24 : #

Total comments: 5

Patch Set 25 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -101 lines) Patch
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/offline_resource_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/offline_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -9 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/appcache/chrome_appcache_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +34 lines, -1 line 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/resource_context_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -15 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +7 lines, -21 lines 0 comments Download
M content/browser/storage_partition_impl_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +10 lines, -7 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -5 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +3 lines, -11 lines 0 comments Download
M content/public/browser/resource_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -3 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +65 lines, -1 line 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
awong
I agree that it's definitely cleaner in the Worker* classes to have some single object ...
8 years, 3 months ago (2012-09-06 22:29:27 UTC) #1
awong
I've stuffed http://codereview.chromium.org/10885044/ onto the CQ. After that's submitting am I right in thinking this ...
8 years, 3 months ago (2012-09-11 20:31:41 UTC) #2
michaeln
yup :)
8 years, 3 months ago (2012-09-11 20:42:21 UTC) #3
michaeln
ptal https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc File content/browser/storage_partition_impl_map.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc#newcode59 content/browser/storage_partition_impl_map.cc:59: // state by providing the NULL input. http://crbug.com/85121 ...
8 years, 3 months ago (2012-09-13 00:21:20 UTC) #4
awong
https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/appcache/chrome_appcache_service_unittest.cc File content/browser/appcache/chrome_appcache_service_unittest.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/appcache/chrome_appcache_service_unittest.cc#newcode36 content/browser/appcache/chrome_appcache_service_unittest.cc:36: spurious new line. https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/renderer_host/resource_message_filter.cc File content/browser/renderer_host/resource_message_filter.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/renderer_host/resource_message_filter.cc#newcode30 content/browser/renderer_host/resource_message_filter.cc:30: ...
8 years, 3 months ago (2012-09-13 00:45:50 UTC) #5
michaeln
https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc File content/browser/storage_partition_impl_map.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc#newcode59 content/browser/storage_partition_impl_map.cc:59: // state by providing the NULL input. http://crbug.com/85121 Should ...
8 years, 3 months ago (2012-09-13 01:37:20 UTC) #6
awong
On 2012/09/13 01:37:20, michaeln wrote: > https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc > File content/browser/storage_partition_impl_map.cc (right): > > https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/storage_partition_impl_map.cc#newcode59 > ...
8 years, 3 months ago (2012-09-13 01:41:11 UTC) #7
awong
errr...actually it can, but I don't think we care right now. On Wed, Sep 12, ...
8 years, 3 months ago (2012-09-13 01:43:14 UTC) #8
michaeln
On 2012/09/13 01:43:14, awong wrote: > No, can't happen yet. > errr...actually it can, but ...
8 years, 3 months ago (2012-09-13 02:20:22 UTC) #9
michaeln
ptal, i'll probably have to update some test code too... running tryjobs to find those ...
8 years, 3 months ago (2012-09-13 21:47:21 UTC) #10
michaeln
try jobs found a couple of derived classes so far https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/appcache/chrome_appcache_service_unittest.cc File content/browser/appcache/chrome_appcache_service_unittest.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/10044/content/browser/appcache/chrome_appcache_service_unittest.cc#newcode36 ...
8 years, 3 months ago (2012-09-13 22:53:08 UTC) #11
awong
LGTM w/ nits Thanks for fixing this! Now if I can just stop writing e-mail ...
8 years, 3 months ago (2012-09-14 00:09:57 UTC) #12
michaeln
i put the new method impl in profile.cc to reduce the number of overrides needed ...
8 years, 3 months ago (2012-09-14 00:24:55 UTC) #13
awong
https://chromiumcodereview.appspot.com/10916132/diff/1058/content/browser/worker_host/worker_process_host.cc File content/browser/worker_host/worker_process_host.cc (right): https://chromiumcodereview.appspot.com/10916132/diff/1058/content/browser/worker_host/worker_process_host.cc#newcode254 content/browser/worker_host/worker_process_host.cc:254: // TODO(michaeln): Put ChromeBlobStorageContext in StorageParition too. On 2012/09/14 ...
8 years, 3 months ago (2012-09-14 00:27:21 UTC) #14
michaeln
Made some further changes like we chatted about in test_browser_context.cc
8 years, 3 months ago (2012-09-14 02:50:18 UTC) #15
awong
LGTM if nits on previous review addressed.
8 years, 3 months ago (2012-09-14 03:04:21 UTC) #16
awong
http://codereview.chromium.org/10916132/diff/116/content/public/test/test_browser_context.cc File content/public/test/test_browser_context.cc (right): http://codereview.chromium.org/10916132/diff/116/content/public/test/test_browser_context.cc#newcode21 content/public/test/test_browser_context.cc:21: virtual bool RunsTasksOnCurrentThread() const OVERRIDE { nit: indentation.
8 years, 3 months ago (2012-09-14 19:59:34 UTC) #17
michaeln
Fixed the chrome unittest problem like we talked about. http://codereview.chromium.org/10916132/diff/116/content/public/test/test_browser_context.cc File content/public/test/test_browser_context.cc (right): http://codereview.chromium.org/10916132/diff/116/content/public/test/test_browser_context.cc#newcode21 content/public/test/test_browser_context.cc:21: ...
8 years, 3 months ago (2012-09-15 00:30:43 UTC) #18
awong
Still LGTM. 2 nits. http://codereview.chromium.org/10916132/diff/14064/content/browser/appcache/chrome_appcache_service.cc File content/browser/appcache/chrome_appcache_service.cc (right): http://codereview.chromium.org/10916132/diff/14064/content/browser/appcache/chrome_appcache_service.cc#newcode34 content/browser/appcache/chrome_appcache_service.cc:34: // The |request_context_getter| can be ...
8 years, 3 months ago (2012-09-15 00:33:29 UTC) #19
awong
+ creis@ for OWNERS.
8 years, 3 months ago (2012-09-15 00:54:21 UTC) #20
Charlie Reis
LGTM with one nit. Thanks! http://codereview.chromium.org/10916132/diff/14064/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/10916132/diff/14064/chrome/browser/profiles/profile.cc#newcode120 chrome/browser/profiles/profile.cc:120: net::URLRequestContextGetter* Profile::GetRequestContextForStoragePartition( Why not ...
8 years, 3 months ago (2012-09-15 01:06:24 UTC) #21
michaeln
http://codereview.chromium.org/10916132/diff/14064/content/browser/appcache/chrome_appcache_service.cc File content/browser/appcache/chrome_appcache_service.cc (right): http://codereview.chromium.org/10916132/diff/14064/content/browser/appcache/chrome_appcache_service.cc#newcode34 content/browser/appcache/chrome_appcache_service.cc:34: // The |request_context_getter| can be NULL in some unit ...
8 years, 3 months ago (2012-09-15 01:50:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/10916132/8122
8 years, 3 months ago (2012-09-15 02:40:45 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-15 03:09:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/10916132/8122
8 years, 3 months ago (2012-09-15 03:21:34 UTC) #25
commit-bot: I haz the power
8 years, 3 months ago (2012-09-15 05:12:37 UTC) #26
Change committed as 156991

Powered by Google App Engine
This is Rietveld 408576698