DescriptionRemove storage context accessors from ResourceContext.
ResourceContext is the IO thread projection of the Profile. Since one profile
may now have multiple StoragePartitions (and thus multiple storage contexts),
we need to remove these accessors. All code in the IO thread has enough
information to find their appropriate storage context objects without needing
to grab it through the ResourceContext. The only users of the ResourceContext
storage context APIs are in worker_host classes.
As a result of this change, a number of APIs that previously just took 1
ResourceContext now need to take 4 additional objects. We could create a
StoragePartitionForIO class that parallels StoragePartition, but since the
API ugliness is purely limited to workers, the abstraction isn't worth its
weight.
BUG=85121
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156126
Patch Set 1 #Patch Set 2 : see if using partition_id simplifies things #Patch Set 3 : add comment. #Patch Set 4 : merged to ToT #
Total comments: 1
Patch Set 5 : now with WorkerStoragePartition #Patch Set 6 : remove id #Patch Set 7 : class-ified #Patch Set 8 : 80-chars #
Total comments: 2
Patch Set 9 : const-ed #
Total comments: 1
Patch Set 10 : teh #Messages
Total messages: 25 (0 generated)
|