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

Unified Diff: content/browser/storage_partition_impl_map.h

Issue 10916132: AppCache and StoragePartition'ing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698