Chromium Code Reviews| 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 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/supports_user_data.h" | 14 #include "base/supports_user_data.h" |
| 15 #include "content/browser/storage_partition_impl.h" | 15 #include "content/browser/storage_partition_impl.h" |
| 16 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class FilePath; | 19 class FilePath; |
| 20 class SequencedTaskRunner; | 20 class SequencedTaskRunner; |
| 21 } // namespace base | 21 } // namespace base |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class BrowserContext; | 25 class BrowserContext; |
| 26 class HostZoomMap; | |
|
awong
2014/08/11 22:36:33
Is this needed?
wjmaclean
2014/08/12 16:57:44
Ooops, no - cruft from revising. Removed.
| |
| 26 | 27 |
| 27 // A std::string to StoragePartition map for use with SupportsUserData APIs. | 28 // A std::string to StoragePartition map for use with SupportsUserData APIs. |
| 28 class CONTENT_EXPORT StoragePartitionImplMap | 29 class CONTENT_EXPORT StoragePartitionImplMap |
| 29 : public base::SupportsUserData::Data { | 30 : public base::SupportsUserData::Data { |
| 30 public: | 31 public: |
| 31 explicit StoragePartitionImplMap(BrowserContext* browser_context); | 32 explicit StoragePartitionImplMap(BrowserContext* browser_context); |
| 32 | 33 |
| 33 virtual ~StoragePartitionImplMap(); | 34 virtual ~StoragePartitionImplMap(); |
| 34 | 35 |
| 35 // This map retains ownership of the returned StoragePartition objects. | 36 // This map retains ownership of the returned StoragePartition objects. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 PartitionMap partitions_; | 126 PartitionMap partitions_; |
| 126 | 127 |
| 127 // Set to true when the ResourceContext for the associated |browser_context_| | 128 // Set to true when the ResourceContext for the associated |browser_context_| |
| 128 // is initialized. Can never return to false. | 129 // is initialized. Can never return to false. |
| 129 bool resource_context_initialized_; | 130 bool resource_context_initialized_; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace content | 133 } // namespace content |
| 133 | 134 |
| 134 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ | 135 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ |
| OLD | NEW |