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

Issue 10913265: Redo the Storage Partition directory layout to support guest tags and origin based partitions. (Closed)

Created:
8 years, 3 months ago by awong
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, nasko, Mihai Parparita -not on Chrome, Erik does not do reviews, Charlie Reis, michaeln, kinuko
Visibility:
Public.

Description

Redo the Storage Partition directory layout to support guest tags and origin based partitions. The new layout is (1) ProfileDir/Default/Storage Partitions/extensions/{ extension_id }/default/ (2) ProfileDir/Default/Storage Partitions/extensions/{ extension_id }/{ hash(BrowserTag.partition) }/ In the future, after we add support for browser tags in webui or add support for server administrators of websites to opt into storage isolation, we will also need: (3) ProfileDir/Default/Storage Partitions/origins/{ hash(origin) }/default/ (4) ProfileDir/Default/Storage Partitions/origins/{ hash(origin) }/{ hash(BrowserTag.partition) }/ TBR=willchan BUG=85121 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157039

Patch Set 1 #

Patch Set 2 : Make world consistent. #

Total comments: 20

Patch Set 3 : redo the layout. #

Total comments: 4

Patch Set 4 : Fix nits #

Total comments: 7

Patch Set 5 : make it relative. #

Patch Set 6 : fix windows. stupid wstringucs2blahblahi18nblah #

Patch Set 7 : merged #

Patch Set 8 : rebased #

Patch Set 9 : merged correctly. #

Patch Set 10 : small cleanup #

Patch Set 11 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -34 lines) Patch
M chrome/browser/extensions/data_deleter.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 5 chunks +12 lines, -6 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +49 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl_map.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -12 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M content/public/common/content_constants.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/common/content_constants.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
awong
Here's the new format. FYI, this doesn't lock us into using any particular hash function ...
8 years, 3 months ago (2012-09-14 07:22:15 UTC) #1
awong
Hold off for a bit on this review. I missed a spot. On 2012/09/14 07:22:15, ...
8 years, 3 months ago (2012-09-14 17:42:27 UTC) #2
awong
Charlie, after this set of changes, I think you're the more appropriate reviewer. Can you ...
8 years, 3 months ago (2012-09-14 18:32:50 UTC) #3
Charlie Reis
https://codereview.chromium.org/10913265/diff/10002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/10913265/diff/10002/chrome/browser/profiles/profile_impl_io_data.cc#newcode125 chrome/browser/profiles/profile_impl_io_data.cc:125: // Keep track of isolated app path and cache ...
8 years, 3 months ago (2012-09-14 21:03:13 UTC) #4
awong
ptal http://codereview.chromium.org/10913265/diff/10002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/10002/chrome/browser/profiles/profile_impl_io_data.cc#newcode125 chrome/browser/profiles/profile_impl_io_data.cc:125: // Keep track of isolated app path and ...
8 years, 3 months ago (2012-09-14 22:26:06 UTC) #5
Charlie Reis
LGTM with nits. http://codereview.chromium.org/10913265/diff/2002/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): http://codereview.chromium.org/10913265/diff/2002/content/browser/storage_partition_impl.cc#newcode25 content/browser/storage_partition_impl.cc:25: // browser tag with persistent storage. ...
8 years, 3 months ago (2012-09-14 22:37:31 UTC) #6
awong
Nits fixed. mihaip: OWNERS for extensions please? (Also you probably care about the layout) willchan: ...
8 years, 3 months ago (2012-09-14 23:01:22 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); One thing that was sort of nice ...
8 years, 3 months ago (2012-09-14 23:52:45 UTC) #8
awong
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/14 23:52:45, willchan wrote: > One ...
8 years, 3 months ago (2012-09-14 23:56:26 UTC) #9
willchan no longer on Chromium
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/14 23:56:26, awong wrote: > On ...
8 years, 3 months ago (2012-09-15 00:02:54 UTC) #10
willchan no longer on Chromium
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/15 00:02:55, willchan wrote: > On ...
8 years, 3 months ago (2012-09-15 00:03:44 UTC) #11
awong
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/15 00:02:55, willchan wrote: > On ...
8 years, 3 months ago (2012-09-15 00:08:00 UTC) #12
awong
On 2012/09/15 00:08:00, awong wrote: > http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc > File chrome/browser/profiles/profile_impl_io_data.cc (right): > > http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 > ...
8 years, 3 months ago (2012-09-15 00:11:53 UTC) #13
willchan no longer on Chromium
http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/15 00:08:00, awong wrote: > On ...
8 years, 3 months ago (2012-09-15 00:13:26 UTC) #14
awong
PTAL http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10913265/diff/13002/chrome/browser/profiles/profile_impl_io_data.cc#newcode518 chrome/browser/profiles/profile_impl_io_data.cc:518: content::StoragePartition::GetPartitionPath(profile_path_, app_id); On 2012/09/15 00:13:26, willchan wrote: > ...
8 years, 3 months ago (2012-09-15 00:43:07 UTC) #15
Mihai Parparita -not on Chrome
LGTM
8 years, 3 months ago (2012-09-15 01:26:25 UTC) #16
awong
Will seems to have gone home for the weekend, but I'm pretty confident I addressed ...
8 years, 3 months ago (2012-09-15 01:28:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/4020
8 years, 3 months ago (2012-09-15 01:29:08 UTC) #18
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 02:02:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/12017
8 years, 3 months ago (2012-09-15 02:31:25 UTC) #20
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:38:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/12017
8 years, 3 months ago (2012-09-15 05:18:51 UTC) #22
commit-bot: I haz the power
Failed to apply patch for content/browser/storage_partition_impl_map.cc: While running patch -p1 --forward --force; patching file content/browser/storage_partition_impl_map.cc ...
8 years, 3 months ago (2012-09-15 05:18:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/6013
8 years, 3 months ago (2012-09-15 06:03:58 UTC) #24
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 06:20:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/12018
8 years, 3 months ago (2012-09-15 06:29:00 UTC) #26
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 07:48:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/12018
8 years, 3 months ago (2012-09-15 14:42:46 UTC) #28
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 15:18:43 UTC) #29
willchan no longer on Chromium
On 2012/09/15 01:28:57, awong wrote: > Will seems to have gone home for the weekend, ...
8 years, 3 months ago (2012-09-15 19:47:42 UTC) #30
awong
On Sat, Sep 15, 2012 at 12:47 PM, <willchan@chromium.org> wrote: > On 2012/09/15 01:28:57, awong ...
8 years, 3 months ago (2012-09-16 01:04:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10913265/12018
8 years, 3 months ago (2012-09-16 01:05:01 UTC) #32
commit-bot: I haz the power
8 years, 3 months ago (2012-09-16 04:01:10 UTC) #33
Change committed as 157039

Powered by Google App Engine
This is Rietveld 408576698