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

Unified Diff: storage/browser/quota/quota_temporary_storage_evictor.h

Issue 2908223002: Deprecate NonThreadSafe in storage/browser/quota in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: storage/browser/quota/quota_temporary_storage_evictor.h
diff --git a/storage/browser/quota/quota_temporary_storage_evictor.h b/storage/browser/quota/quota_temporary_storage_evictor.h
index 187d3396e6a1671309c17017aa028afc529f1408..42d3e1417a1623244af36f9563da987ff05ac271 100644
--- a/storage/browser/quota/quota_temporary_storage_evictor.h
+++ b/storage/browser/quota/quota_temporary_storage_evictor.h
@@ -13,7 +13,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/timer/timer.h"
#include "storage/browser/storage_browser_export.h"
#include "storage/common/quota/quota_types.h"
@@ -29,7 +29,7 @@ namespace storage {
class QuotaEvictionHandler;
struct QuotaSettings;
-class STORAGE_EXPORT QuotaTemporaryStorageEvictor : public base::NonThreadSafe {
+class STORAGE_EXPORT QuotaTemporaryStorageEvictor {
public:
struct Statistics {
Statistics()
@@ -110,6 +110,9 @@ class STORAGE_EXPORT QuotaTemporaryStorageEvictor : public base::NonThreadSafe {
base::OneShotTimer eviction_timer_;
base::RepeatingTimer histogram_timer_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor);
« no previous file with comments | « storage/browser/quota/client_usage_tracker.cc ('k') | storage/browser/quota/quota_temporary_storage_evictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698