| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ | 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ |
| 6 #define CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ | 6 #define CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class BrowserContext; | 25 class BrowserContext; |
| 26 | 26 |
| 27 // A std::string to StoragePartition map for use with SupportsUserData APIs. | 27 // A std::string to StoragePartition map for use with SupportsUserData APIs. |
| 28 class CONTENT_EXPORT StoragePartitionImplMap | 28 class CONTENT_EXPORT StoragePartitionImplMap |
| 29 : public base::SupportsUserData::Data { | 29 : public base::SupportsUserData::Data { |
| 30 public: | 30 public: |
| 31 explicit StoragePartitionImplMap(BrowserContext* browser_context); | 31 explicit StoragePartitionImplMap(BrowserContext* browser_context); |
| 32 | 32 |
| 33 virtual ~StoragePartitionImplMap(); | 33 ~StoragePartitionImplMap() override; |
| 34 | 34 |
| 35 // This map retains ownership of the returned StoragePartition objects. | 35 // This map retains ownership of the returned StoragePartition objects. |
| 36 StoragePartitionImpl* Get(const std::string& partition_domain, | 36 StoragePartitionImpl* Get(const std::string& partition_domain, |
| 37 const std::string& partition_name, | 37 const std::string& partition_name, |
| 38 bool in_memory); | 38 bool in_memory); |
| 39 | 39 |
| 40 // Starts an asynchronous best-effort attempt to delete all on-disk storage | 40 // Starts an asynchronous best-effort attempt to delete all on-disk storage |
| 41 // related to |site|, avoiding any directories that are known to be in use. | 41 // related to |site|, avoiding any directories that are known to be in use. |
| 42 // | 42 // |
| 43 // |on_gc_required| is called if the AsyncObliterate() call was unable to | 43 // |on_gc_required| is called if the AsyncObliterate() call was unable to |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 PartitionMap partitions_; | 125 PartitionMap partitions_; |
| 126 | 126 |
| 127 // Set to true when the ResourceContext for the associated |browser_context_| | 127 // Set to true when the ResourceContext for the associated |browser_context_| |
| 128 // is initialized. Can never return to false. | 128 // is initialized. Can never return to false. |
| 129 bool resource_context_initialized_; | 129 bool resource_context_initialized_; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace content | 132 } // namespace content |
| 133 | 133 |
| 134 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ | 134 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ |
| OLD | NEW |