| Index: content/browser/storage_partition_impl_map.h
|
| diff --git a/content/browser/storage_partition_map.h b/content/browser/storage_partition_impl_map.h
|
| similarity index 68%
|
| rename from content/browser/storage_partition_map.h
|
| rename to content/browser/storage_partition_impl_map.h
|
| index bcebac1f112ddfb89fe1b63ad168f31a76e09218..d4a66e71bfb9b0088af4a6d8f7248baaca5f4746 100644
|
| --- a/content/browser/storage_partition_map.h
|
| +++ b/content/browser/storage_partition_impl_map.h
|
| @@ -10,25 +10,26 @@
|
|
|
| #include "base/callback_forward.h"
|
| #include "base/supports_user_data.h"
|
| +#include "content/public/browser/browser_context.h"
|
|
|
| class FilePath;
|
|
|
| namespace content {
|
|
|
| class BrowserContext;
|
| -class StoragePartition;
|
| +class StoragePartitionImpl;
|
|
|
| // A std::string to StoragePartition map for use with SupportsUserData APIs.
|
| -class StoragePartitionMap : public base::SupportsUserData::Data {
|
| +class StoragePartitionImplMap : public base::SupportsUserData::Data {
|
| public:
|
| - explicit StoragePartitionMap(BrowserContext* browser_context);
|
| + explicit StoragePartitionImplMap(BrowserContext* browser_context);
|
|
|
| - virtual ~StoragePartitionMap();
|
| + virtual ~StoragePartitionImplMap();
|
|
|
| // This map retains ownership of the returned StoragePartition objects.
|
| - StoragePartition* Get(const std::string& partition_id);
|
| + StoragePartitionImpl* Get(const std::string& partition_id);
|
|
|
| - void ForEach(const base::Callback<void(StoragePartition*)>& callback);
|
| + void ForEach(const BrowserContext::StoragePartitionCallback& callback);
|
|
|
| private:
|
| // This must always be called *after* |partition| has been added to the
|
| @@ -37,11 +38,11 @@ class StoragePartitionMap : public base::SupportsUserData::Data {
|
| // TODO(ajwong): Is there a way to make it so that Get()'s implementation
|
| // doesn't need to be aware of this ordering? Revisit when refactoring
|
| // ResourceContext and AppCache to respect storage partitions.
|
| - void PostCreateInitialization(StoragePartition* partition,
|
| + void PostCreateInitialization(StoragePartitionImpl* partition,
|
| const FilePath& partition_path);
|
|
|
| BrowserContext* browser_context_; // Not Owned.
|
| - std::map<std::string, StoragePartition*> partitions_;
|
| + std::map<std::string, StoragePartitionImpl*> partitions_;
|
| };
|
|
|
| } // namespace content
|
|
|