| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "mojo/public/cpp/bindings/binding_set.h" | 27 #include "mojo/public/cpp/bindings/binding_set.h" |
| 28 #include "net/cookies/cookie_store.h" | 28 #include "net/cookies/cookie_store.h" |
| 29 #include "storage/browser/quota/special_storage_policy.h" | 29 #include "storage/browser/quota/special_storage_policy.h" |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 class CONTENT_EXPORT StoragePartitionImpl | 33 class CONTENT_EXPORT StoragePartitionImpl |
| 34 : public StoragePartition, | 34 : public StoragePartition, |
| 35 public NON_EXPORTED_BASE(mojom::StoragePartitionService) { | 35 public NON_EXPORTED_BASE(mojom::StoragePartitionService) { |
| 36 public: | 36 public: |
| 37 // It is guaranteed that storage partitions are destructed before the |
| 38 // browser context starts shutting down its corresponding IO thread residents |
| 39 // (e.g. resource context). |
| 37 ~StoragePartitionImpl() override; | 40 ~StoragePartitionImpl() override; |
| 38 | 41 |
| 39 // Quota managed data uses a different bitmask for types than | 42 // Quota managed data uses a different bitmask for types than |
| 40 // StoragePartition uses. This method generates that mask. | 43 // StoragePartition uses. This method generates that mask. |
| 41 static int GenerateQuotaClientMask(uint32_t remove_mask); | 44 static int GenerateQuotaClientMask(uint32_t remove_mask); |
| 42 | 45 |
| 43 // This creates a CookiePredicate that matches all host (NOT domain) cookies | 46 // This creates a CookiePredicate that matches all host (NOT domain) cookies |
| 44 // that match the host of |url|. This is intended to be used with | 47 // that match the host of |url|. This is intended to be used with |
| 45 // DeleteAllCreatedBetweenWithPredicateAsync. | 48 // DeleteAllCreatedBetweenWithPredicateAsync. |
| 46 static net::CookieStore::CookiePredicate | 49 static net::CookieStore::CookiePredicate |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 230 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
| 228 // BrowserContext is destroyed, |this| will be destroyed too. | 231 // BrowserContext is destroyed, |this| will be destroyed too. |
| 229 BrowserContext* browser_context_; | 232 BrowserContext* browser_context_; |
| 230 | 233 |
| 231 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 234 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 232 }; | 235 }; |
| 233 | 236 |
| 234 } // namespace content | 237 } // namespace content |
| 235 | 238 |
| 236 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 239 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |