Chromium Code Reviews| Index: content/browser/storage_partition_impl.h |
| diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h |
| index e59347cb569d06fff7bb18e8bebf98a656c46b32..040d34b630eee570e00c33644431382842c01843 100644 |
| --- a/content/browser/storage_partition_impl.h |
| +++ b/content/browser/storage_partition_impl.h |
| @@ -12,6 +12,7 @@ |
| #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| #include "content/browser/media/webrtc_identity_store.h" |
| +#include "content/browser/net/cookie_store_map.h" |
| #include "content/common/content_export.h" |
| #include "content/public/browser/storage_partition.h" |
| @@ -31,12 +32,10 @@ class StoragePartitionImpl : public StoragePartition { |
| virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| virtual DOMStorageContextWrapper* GetDOMStorageContext() OVERRIDE; |
| virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; |
| - |
| virtual void ClearDataForOrigin( |
| uint32 remove_mask, |
| uint32 quota_storage_remove_mask, |
| - const GURL& storage_origin, |
| - net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
| + const GURL& storage_origin) OVERRIDE; |
| virtual void ClearDataForUnboundedRange( |
| uint32 remove_mask, |
| uint32 quota_storage_remove_mask) OVERRIDE; |
| @@ -47,6 +46,7 @@ class StoragePartitionImpl : public StoragePartition { |
| const base::Closure& callback) OVERRIDE; |
| WebRTCIdentityStore* GetWebRTCIdentityStore(); |
| + CONTENT_EXPORT const CookieStoreMap& GetCookieStoreMap(); |
| struct DataDeletionHelper; |
| struct QuotaManagedDataDeletionHelper; |
| @@ -61,9 +61,11 @@ class StoragePartitionImpl : public StoragePartition { |
| // If |in_memory| is true, the |partition_path| is (ab)used as a way of |
|
Charlie Reis
2013/08/17 00:17:22
nit: Should partition_path be profile_path?
awong
2013/08/17 00:32:52
Done.
|
| // distinguishing different in-memory partitions, but nothing is persisted |
| // on to disk. |
| - static StoragePartitionImpl* Create(BrowserContext* context, |
| - bool in_memory, |
| - const base::FilePath& profile_path); |
| + static StoragePartitionImpl* Create( |
| + BrowserContext* context, |
| + bool in_memory, |
| + const base::FilePath& profile_path, |
| + scoped_ptr<CookieStoreMap> cookie_store_map); |
| // Quota managed data uses a different bitmask for types than |
| // StoragePartition uses. This method generates that mask. |
| @@ -77,12 +79,13 @@ class StoragePartitionImpl : public StoragePartition { |
| webkit_database::DatabaseTracker* database_tracker, |
| DOMStorageContextWrapper* dom_storage_context, |
| IndexedDBContextImpl* indexed_db_context, |
| + scoped_ptr<CookieStoreMap> cookie_store_map, |
| WebRTCIdentityStore* webrtc_identity_store); |
| + // Use an empty |remove_origin| to delete data from all origins. |
| void ClearDataImpl(uint32 remove_mask, |
| uint32 quota_storage_remove_mask, |
| const GURL& remove_origin, |
| - net::URLRequestContextGetter* rq_context, |
| const base::Time begin, |
| const base::Time end, |
| const base::Closure& callback); |
| @@ -112,6 +115,7 @@ class StoragePartitionImpl : public StoragePartition { |
| scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
| scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| + scoped_ptr<CookieStoreMap> cookie_store_map_; |
| scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
| DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |