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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // This must always be called *after* |partition| has been added to the | 112 // This must always be called *after* |partition| has been added to the |
113 // partitions_. | 113 // partitions_. |
114 // | 114 // |
115 // TODO(ajwong): Is there a way to make it so that Get()'s implementation | 115 // TODO(ajwong): Is there a way to make it so that Get()'s implementation |
116 // doesn't need to be aware of this ordering? Revisit when refactoring | 116 // doesn't need to be aware of this ordering? Revisit when refactoring |
117 // ResourceContext and AppCache to respect storage partitions. | 117 // ResourceContext and AppCache to respect storage partitions. |
118 void PostCreateInitialization(StoragePartitionImpl* partition, | 118 void PostCreateInitialization(StoragePartitionImpl* partition, |
119 bool in_memory); | 119 bool in_memory); |
120 | 120 |
| 121 scoped_ptr<CookieStoreMap> CreateCookieStores( |
| 122 const base::FilePath& partition_path, |
| 123 bool in_memory_partition, |
| 124 bool is_default_partition); |
| 125 |
121 BrowserContext* browser_context_; // Not Owned. | 126 BrowserContext* browser_context_; // Not Owned. |
122 scoped_refptr<base::SequencedTaskRunner> file_access_runner_; | 127 scoped_refptr<base::SequencedTaskRunner> file_access_runner_; |
123 PartitionMap partitions_; | 128 PartitionMap partitions_; |
124 | 129 |
125 // Set to true when the ResourceContext for the associated |browser_context_| | 130 // Set to true when the ResourceContext for the associated |browser_context_| |
126 // is initialized. Can never return to false. | 131 // is initialized. Can never return to false. |
127 bool resource_context_initialized_; | 132 bool resource_context_initialized_; |
128 }; | 133 }; |
129 | 134 |
130 } // namespace content | 135 } // namespace content |
131 | 136 |
132 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ | 137 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ |
OLD | NEW |