Index: content/browser/storage_partition_impl_map.h |
=================================================================== |
--- content/browser/storage_partition_impl_map.h (revision 154786) |
+++ content/browser/storage_partition_impl_map.h (working copy) |
@@ -26,12 +26,14 @@ |
virtual ~StoragePartitionImplMap(); |
- // This map retains ownership of the returned StoragePartition objects. |
+ // This map retains a reference to the returned StoragePartition objects. |
StoragePartitionImpl* Get(const std::string& partition_id); |
void ForEach(const BrowserContext::StoragePartitionCallback& callback); |
private: |
+ typedef std::map<std::string, scoped_refptr<StoragePartitionImpl> > Map; |
+ |
// This must always be called *after* |partition| has been added to the |
// partitions_. |
// |
@@ -42,7 +44,7 @@ |
const FilePath& partition_path); |
BrowserContext* browser_context_; // Not Owned. |
- std::map<std::string, StoragePartitionImpl*> partitions_; |
+ Map partitions_; |
}; |
} // namespace content |