Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 2159133002: Shutdown StoragePartition before ProfileIOData is being shut down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 228 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
226 // BrowserContext is destroyed, |this| will be destroyed too. 229 // BrowserContext is destroyed, |this| will be destroyed too.
227 BrowserContext* browser_context_; 230 BrowserContext* browser_context_;
228 231
229 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 232 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
230 }; 233 };
231 234
232 } // namespace content 235 } // namespace content
233 236
234 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 237 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698